From: Nathaniel McCallum Date: Thu, 19 Nov 2009 01:15:28 +0000 (-0500) Subject: USB: handle bcd incrementation in usb modalias generation X-Git-Tag: v2.6.33-rc1~315^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55f49f26821f379c451deb9fd6de8e59afb9b37e;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed