]> 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, 7 Feb 2013 01:27:36 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:47:09 +0000 (16:47 +1100)
commitd0ada6d5f1e122135fbad559631933a5e9dddc83
tree1148d6ca52987c649bb0bf832b8c89dd5f89db40
parent1ba9afb461f249036bd8c0e12b8f00f6c457994e
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