summaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-20 21:15:16 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 16:47:37 -0700
commit094f1649577dfc7f2c7407a8380e05a506b31f7f (patch)
tree5775c40d5c05f5427bb36c3c61d0db143c719bdd /include/linux/usb.h
parent8da608caa07d5c9745ec86bf7c25ad423352f9a4 (diff)
downloadop-kernel-dev-094f1649577dfc7f2c7407a8380e05a506b31f7f.zip
op-kernel-dev-094f1649577dfc7f2c7407a8380e05a506b31f7f.tar.gz
[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(-)
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 8f731e8..4512210 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -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;
OpenPOWER on IntegriCloud