summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/legacy/hid.c
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@samsung.com>2015-10-20 18:33:13 +0200
committerFelipe Balbi <balbi@ti.com>2015-12-15 16:12:41 +0100
commit0aecfc1b359dffddf74bd0e0ea5ee47066d210ac (patch)
treee8f79ca3b6c2bd657c58bdd07d1eab953dcf7aa1 /drivers/usb/gadget/legacy/hid.c
parentusb: dwc2: host: Support immediate retries for split transactions (diff)
downloadlinux-0aecfc1b359dffddf74bd0e0ea5ee47066d210ac.tar.xz
linux-0aecfc1b359dffddf74bd0e0ea5ee47066d210ac.zip
usb: gadget: composite: remove redundant bcdUSB setting in legacy
Since composite now overwrites bcdUSB for any gadget, remove setting it in legacy gadgets. All legacy gadgets set 0x0200, the same as the value additionally set by composite, so there is no behaviour change. Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com> Rebase onto current balbi/next Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/hid.c')
-rw-r--r--drivers/usb/gadget/legacy/hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/hid.c b/drivers/usb/gadget/legacy/hid.c
index 7e5d2c48476e..a71a884f79fc 100644
--- a/drivers/usb/gadget/legacy/hid.c
+++ b/drivers/usb/gadget/legacy/hid.c
@@ -47,7 +47,7 @@ static struct usb_device_descriptor device_desc = {
.bLength = sizeof device_desc,
.bDescriptorType = USB_DT_DEVICE,
- .bcdUSB = cpu_to_le16(0x0200),
+ /* .bcdUSB = DYNAMIC */
/* .bDeviceClass = USB_CLASS_COMM, */
/* .bDeviceSubClass = 0, */