usb: acm: fix the computation of the number of data bits
authorNicolas Boullis <[email protected]>
Mon, 15 Oct 2012 22:06:23 +0000 (00:06 +0200)
committerGreg Kroah-Hartman <[email protected]>
Wed, 17 Oct 2012 20:45:49 +0000 (13:45 -0700)
commit301a29da6e891e7eb95c843af0ecdbe86d01f723
tree06a394d2ee61a08f7ba07741eea2ff43fa67a82e
parent6e1babb3ff2651376f2e9843569fcb39cfe4686b
usb: acm: fix the computation of the number of data bits

The current code assumes that CSIZE is 0000060, which appears to be
wrong on some arches (such as powerpc).

Signed-off-by: Nicolas Boullis <[email protected]>
Acked-by: Oliver Neukum <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/class/cdc-acm.c