diff options
author | Nathaniel McCallum <nathaniel@natemccallum.com> | 2009-11-19 02:15:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 20:55:20 +0100 |
commit | 55f49f26821f379c451deb9fd6de8e59afb9b37e (patch) | |
tree | c4c4cfd20a6766cd38ec25213124ccc92b48592e /net/ipv6/reassembly.c | |
parent | USB: add hex/bcd detection to usb modalias generation (diff) | |
download | linux-55f49f26821f379c451deb9fd6de8e59afb9b37e.tar.xz linux-55f49f26821f379c451deb9fd6de8e59afb9b37e.zip |
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>
Diffstat (limited to 'net/ipv6/reassembly.c')
0 files changed, 0 insertions, 0 deletions