]> 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>
Sun, 10 Mar 2013 10:54:52 +0000 (21:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:56:34 +0000 (14:56 +1100)
commitd36c6161808158fb3ea62268a057d1af5d038d5d
treee2bf9e1d541dea87c7fb9865284d18ed993dc209
parent485fcea3fcb2429708f858904c62560f653359f5
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