usb: gadget serial: don't shift bcd version left by 16
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 10 Sep 2012 17:06:44 +0000 (19:06 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Sep 2012 17:04:20 +0000 (20:04 +0300)
commit5c4d46eb89fe99011a02048533857345d9e8b506
tree0ffe7e23d42f45bc0da7dd6ec25e5fd42ebecce8
parent9830317a3f97afc358949ffa87529ee9da49bb44
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>
drivers/usb/gadget/serial.c