diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-10-25 15:56:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:50 -0400 |
commit | be69e5b1900a19a545becda822b18d6f09168ba5 (patch) | |
tree | 7730b17e403cc03ea7c7cee8fc56f06171af0ebe /include/linux | |
parent | e52783206ada0c0276c8dd74c0ecd0007ead7c00 (diff) |
[PATCH] usbcore: Improve endpoint sysfs file handling
This revised patch (as587b) improves the implementation of USB endpoint
sysfs files. Instead of storing a whole bunch of attributes for every
single endpoint, each endpoint now gets its own kobject and they can
share a static list of attributes. The number of extra fields added to
struct usb_host_endpoint has been reduced from 4 to 1.
The bEndpointAddress field is retained even though it is redundant (it
repeats the same information as the attributes' directory name). The
code avoids calling kobject_register, to prevent generating unwanted
hotplug events.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index a2d923fd54f9..465ff4585ca5 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -57,10 +57,7 @@ struct usb_host_endpoint { | |||
57 | struct usb_endpoint_descriptor desc; | 57 | struct usb_endpoint_descriptor desc; |
58 | struct list_head urb_list; | 58 | struct list_head urb_list; |
59 | void *hcpriv; | 59 | void *hcpriv; |
60 | char *attr_name; | 60 | struct kobject *kobj; /* For sysfs info */ |
61 | struct attribute_group *attr_group; | ||
62 | struct attribute **attrs; | ||
63 | int num_attrs; | ||
64 | 61 | ||
65 | unsigned char *extra; /* Extra descriptors */ | 62 | unsigned char *extra; /* Extra descriptors */ |
66 | int extralen; | 63 | int extralen; |