]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/usb/core/hcd.c
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)
commitb53d657d84f530e5d83f34ff1b81ceedad3faa31
treef7921ce311aca66d7f42031e3a6e0cd31a808ea9
parent8a424bf40d772fedacc91862ecc86f10541fabb3
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