]> git.baikalelectronics.ru Git - kernel.git/commit
usb/core: use bin2bcd() for bcdDevice in RH
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 7 Sep 2012 12:31:45 +0000 (14:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 18:13:16 +0000 (11:13 -0700)
commit665d4f0349996e91a584c2c5c89e9752476bec41
treef7921ce311aca66d7f42031e3a6e0cd31a808ea9
parentcd17508be65f4a0e8305485ed77521a45b087a54
usb/core: use bin2bcd() for bcdDevice in RH

The kernel's version number is used as decimal in the bcdDevice field of
the RH descriptor. For kernel version v3.12 we would see 3.0c in lsusb.
I am not sure how important it is to stick with bcd values since this is
this way since we started git history and nobody complained (however back
then we reported only 2.6).

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c
include/linux/bcd.h
lib/bcd.c