]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/leds/leds-lp5521.c: check if reset is successful
authorSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Mon, 24 Oct 2011 14:58:55 +0000 (01:58 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 08:41:30 +0000 (19:41 +1100)
commitb1ec163e3a3a4b32b765295b3241e3db6a1eaeca
treeaf6675ddca3826afb599da719393597d4ec34502
parente5e21e050c5329ac43b3eca7f5ea2697c16a36c8
drivers/leds/leds-lp5521.c: check if reset is successful

Make sure that the reset is successful by issuing a dummy read to R
channel current register and check its default value.  On some platforms,
without this dummy read, any further access to {R/G/B}_EXEC will not have
any impact.

Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Tested-by: Naga Radhesh <naga.radheshy@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/leds-lp5521.c