]> 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>
Thu, 9 May 2013 23:57:24 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:45 +0000 (14:17 +1000)
commitfacd1daee3c4bc7da5f8b9d97c0940dc6f101dc4
tree04ad3d32de685a8b4b559fa1e1bb39e58f010cf1
parentcc582bb564c5d1f3c6038a5122a8d6b19611f516
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