Nathaniel McCallum 55f49f2682 USB: handle bcd incrementation in usb modalias generation
This patch fixes a bug when incrementing/decrementing on a BCD formatted
integer (i.e. 0x09++ should be 0x10 not 0x0A).  It just adds a function
for incrementing/decrementing BCD integers by converting to decimal,
doing the increment/decrement and then converting back to BCD.

Signed-off-by: Nathaniel McCallum <nathaniel@natemccallum.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-11 11:55:20 -08:00
..
2005-04-16 15:20:36 -07:00
2009-06-27 00:17:48 +02:00
2005-04-16 15:20:36 -07:00
2007-12-17 19:28:17 -08:00
2009-10-29 07:39:31 -07:00
2008-10-22 21:53:49 -07:00
2006-07-03 23:30:54 +02:00
2008-07-25 22:12:41 +02:00
2009-06-09 22:37:54 +02:00
2009-06-09 22:37:43 +02:00
2009-09-15 17:04:38 -07:00
2008-04-25 20:18:48 +02:00
2008-04-25 20:18:48 +02:00
2009-09-18 21:22:08 +02:00
2005-04-16 15:20:36 -07:00
2009-09-20 12:27:43 +02:00
2009-06-09 22:37:54 +02:00