aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/hid.c
diff options
context:
space:
mode:
authorOrjan Friberg <of@flatfrog.com>2012-03-07 11:16:14 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 16:11:34 -0500
commit33d2832ab0149a26418d360af3c444969a63fb28 (patch)
tree3a7b6bca37125bb20fe2c3e45ef30a2c3d97dd93 /drivers/usb/gadget/hid.c
parent3cc3615749dbd1b891512d5c9a5bf4559cfa9741 (diff)
USB: gadget: Make g_hid device class conform to spec.
HID devices should specify this in their interface descriptors, not in the device descriptor. This fixes a "missing hardware id" bug under Windows 7 with a VIA VL800 (3.0) controller. Signed-off-by: Orjan Friberg <of@flatfrog.com> Cc: Felipe Balbi <balbi@ti.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/hid.c')
-rw-r--r--drivers/usb/gadget/hid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/hid.c b/drivers/usb/gadget/hid.c
index f888c3ede860..3493adf064f5 100644
--- a/drivers/usb/gadget/hid.c
+++ b/drivers/usb/gadget/hid.c
@@ -60,9 +60,9 @@ static struct usb_device_descriptor device_desc = {
60 /* .bDeviceClass = USB_CLASS_COMM, */ 60 /* .bDeviceClass = USB_CLASS_COMM, */
61 /* .bDeviceSubClass = 0, */ 61 /* .bDeviceSubClass = 0, */
62 /* .bDeviceProtocol = 0, */ 62 /* .bDeviceProtocol = 0, */
63 .bDeviceClass = 0xEF, 63 .bDeviceClass = USB_CLASS_PER_INTERFACE,
64 .bDeviceSubClass = 2, 64 .bDeviceSubClass = 0,
65 .bDeviceProtocol = 1, 65 .bDeviceProtocol = 0,
66 /* .bMaxPacketSize0 = f(hardware) */ 66 /* .bMaxPacketSize0 = f(hardware) */
67 67
68 /* Vendor and product id can be overridden by module parameters. */ 68 /* Vendor and product id can be overridden by module parameters. */