aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorOrjan Friberg <of@flatfrog.com>2012-03-07 17:16:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-02 09:26:53 -0700
commitc924f401df0c34336683c9e4848ab93e819f72a5 (patch)
tree29b16ccf4e7cacf1d61ab774efde600a390886fa /drivers/usb/gadget
parent168421aba8d57a7798c9a6ec2493ff6fa4b3cbae (diff)
downloadkernel_samsung_smdk4412-c924f401df0c34336683c9e4848ab93e819f72a5.zip
kernel_samsung_smdk4412-c924f401df0c34336683c9e4848ab93e819f72a5.tar.gz
kernel_samsung_smdk4412-c924f401df0c34336683c9e4848ab93e819f72a5.tar.bz2
USB: gadget: Make g_hid device class conform to spec.
commit 33d2832ab0149a26418d360af3c444969a63fb28 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-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 2523e54..79afa82 100644
--- a/drivers/usb/gadget/hid.c
+++ b/drivers/usb/gadget/hid.c
@@ -69,9 +69,9 @@ static struct usb_device_descriptor device_desc = {
/* .bDeviceClass = USB_CLASS_COMM, */
/* .bDeviceSubClass = 0, */
/* .bDeviceProtocol = 0, */
- .bDeviceClass = 0xEF,
- .bDeviceSubClass = 2,
- .bDeviceProtocol = 1,
+ .bDeviceClass = USB_CLASS_PER_INTERFACE,
+ .bDeviceSubClass = 0,
+ .bDeviceProtocol = 0,
/* .bMaxPacketSize0 = f(hardware) */
/* Vendor and product id can be overridden by module parameters. */