]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: renesas-tpu: cleanup a small type issue
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 31 May 2013 12:55:04 +0000 (05:55 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 31 May 2013 17:23:58 +0000 (10:23 -0700)
commit19401945d81a1d9c7a5a837dfb26d2cb13004638
tree5c2919dbf39fac172d3d5001df60d6d5d0173988
parentfbd476eade75aa5cfb7733d3210a8b78db1c2d85
leds: renesas-tpu: cleanup a small type issue

Static checkers complain that, although this is declared as an
unsigned long, we can only use the lower 32 bits.  For anything
higher, we hit bugs widening then bitwise negate or wrapping bugs
doing the left shift.

From looking at the context, this is not a problem because we only
use 16 bits.  I've changed some types to make it more clear.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-renesas-tpu.c