USB: Fix a bug on appledisplay.c regarding signedness
authorpancho horrillo <pancho@pancho.name>
Wed, 23 Dec 2009 10:09:13 +0000 (11:09 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:03:39 +0000 (15:03 -0800)
commit3635acd7f7f86d7319c15f3de8be7579b41defc2
tree4fd76c2b09609e67aa25d56f167fe6bb6ff33703
parent5a82dd5dcafaf91f894f68cbb16359a1338900f5
USB: Fix a bug on appledisplay.c regarding signedness

commit 37e9066b2f85480d99d3795373f5ef0b00ac1189 upstream.

brightness status is reported by the Apple Cinema Displays as an
'unsigned char' (u8) value, but the code used 'char' instead.

Note that he driver was developed on the PowerPC architecture,
where the two types are synonymous, which is not always the case.

Fixed that.  Otherwise the driver will interpret brightness
levels > 127 as negative, and fail to load.

Signed-off-by: pancho horrillo <pancho@pancho.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/appledisplay.c