[PATCH] USB: add endpoint information to sysfs
This patch adds endpoint information for both devices and interfaces to sysfs. Previously it was only possible to get the endpoint information from usbfs, and never possible to get any information on endpoint 0. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> drivers/usb/core/sysfs.c | 195 ++++++++++++++++++++++++++++++++++++++++++++++- include/linux/usb.h | 4 2 files changed, 197 insertions(+), 2 deletions(-)
This commit is contained in:
parent
8da608caa0
commit
094f164957
2 changed files with 197 additions and 2 deletions
|
@ -57,6 +57,10 @@ struct usb_host_endpoint {
|
|||
struct usb_endpoint_descriptor desc;
|
||||
struct list_head urb_list;
|
||||
void *hcpriv;
|
||||
char *attr_name;
|
||||
struct attribute_group *attr_group;
|
||||
struct attribute **attrs;
|
||||
int num_attrs;
|
||||
|
||||
unsigned char *extra; /* Extra descriptors */
|
||||
int extralen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue