]> 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, 25 Oct 2011 09:08:07 +0000 (20:08 +1100)
commit0f343890599c8f0e716987638323b79c696af13b
treea15f6924960d6eb658bea4a1f4a6e1763eadef63
parenta27070777a51a54c20e7556fdf64f1e3287f1543
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