diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-10 19:06:44 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 20:04:20 +0300 |
commit | 5c4d46eb89fe99011a02048533857345d9e8b506 (patch) | |
tree | 0ffe7e23d42f45bc0da7dd6ec25e5fd42ebecce8 /drivers/usb/gadget/serial.c | |
parent | 9830317a3f97afc358949ffa87529ee9da49bb44 (diff) | |
download | blackbird-obmc-linux-5c4d46eb89fe99011a02048533857345d9e8b506.tar.gz blackbird-obmc-linux-5c4d46eb89fe99011a02048533857345d9e8b506.zip |
usb: gadget serial: don't shift bcd version left by 16
Fengguang Wu reported:
|drivers/usb/gadget/serial.c:89:22: sparse: cast truncates bits from
|constant value (24000000 becomes 0)
I obviously let the version number shift away. Since the version is a
16bit number it can be applied as it.
Cc: fengguang.wu@intel.com
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/serial.c')
-rw-r--r-- | drivers/usb/gadget/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index 942067327d88..44752f531e85 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c @@ -86,7 +86,7 @@ static struct usb_device_descriptor device_desc = { /* .bMaxPacketSize0 = f(hardware) */ .idVendor = cpu_to_le16(GS_VENDOR_ID), /* .idProduct = f(use_acm) */ - .bcdDevice = cpu_to_le16(GS_VERSION_NUM << 16), + .bcdDevice = cpu_to_le16(GS_VERSION_NUM), /* .iManufacturer = DYNAMIC */ /* .iProduct = DYNAMIC */ .bNumConfigurations = 1, |