]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: add bMaxPacketSize0 attribute to sysfs
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 29 Jun 2005 23:53:29 +0000 (16:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Jul 2005 18:52:54 +0000 (11:52 -0700)
For some reason this was not there...

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/sysfs.c

index 740cb4c668dfa6295e10ec7aba57854d50bd63ea..00297f1138493124a163b7e66f123975d4bcd124 100644 (file)
@@ -196,6 +196,7 @@ usb_descriptor_attr (bDeviceClass, "%02x\n")
 usb_descriptor_attr (bDeviceSubClass, "%02x\n")
 usb_descriptor_attr (bDeviceProtocol, "%02x\n")
 usb_descriptor_attr (bNumConfigurations, "%d\n")
+usb_descriptor_attr (bMaxPacketSize0, "%d\n")
 
 static struct attribute *dev_attrs[] = {
        /* current configuration's attributes */
@@ -211,6 +212,7 @@ static struct attribute *dev_attrs[] = {
        &dev_attr_bDeviceSubClass.attr,
        &dev_attr_bDeviceProtocol.attr,
        &dev_attr_bNumConfigurations.attr,
+       &dev_attr_bMaxPacketSize0.attr,
        &dev_attr_speed.attr,
        &dev_attr_devnum.attr,
        &dev_attr_version.attr,