Skip to content
Snippets Groups Projects
Commit 55f49f26 authored by Nathaniel McCallum's avatar Nathaniel McCallum Committed by Greg Kroah-Hartman
Browse files

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: default avatarNathaniel McCallum <nathaniel@natemccallum.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent afe2dab4
No related branches found
Tags v4.16-rc3
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment