diff options
author | Igor Kotrasinski <i.kotrasinsk@samsung.com> | 2015-10-20 19:33:13 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-15 18:12:41 +0300 |
commit | 0aecfc1b359dffddf74bd0e0ea5ee47066d210ac (patch) | |
tree | e8f79ca3b6c2bd657c58bdd07d1eab953dcf7aa1 /drivers/usb/gadget/legacy/cdc2.c | |
parent | 69b76cdff592058ea445cd40e18c75dffaba4cb9 (diff) | |
download | linux-0aecfc1b359dffddf74bd0e0ea5ee47066d210ac.tar.xz |
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/cdc2.c')
-rw-r--r-- | drivers/usb/gadget/legacy/cdc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/legacy/cdc2.c b/drivers/usb/gadget/legacy/cdc2.c index ecd8c8d62f2e..51c08682de84 100644 --- a/drivers/usb/gadget/legacy/cdc2.c +++ b/drivers/usb/gadget/legacy/cdc2.c @@ -43,7 +43,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, |