]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/leds/leds-ot200.c: fix error caused by shifted mask
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 26 Mar 2013 23:25:04 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:28 +0000 (17:12 +1100)
commit3f6fae8be379cf276dd7a2ddaa13daa3134cedc8
tree7448d5c0c73a4e9c1dd6301ceab8a90bedfc017d
parent67af037d71ebf172d4832e4fbc6b4e87adaa5b0c
drivers/leds/leds-ot200.c: fix error caused by shifted mask

During the development of this driver an in-house register documentation
was used.  The last week some integration tests were done and this problem
was found.  It turned out that the released register documentation is
wrong.

The fix is very simple: shift all masks by one.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: Bryan Wu <cooloney@gmail.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/leds-ot200.c