Skip to content
Commit b3c49c05 authored by Srinidhi KASAGAR's avatar Srinidhi KASAGAR Committed by Linus Torvalds
Browse files

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.

[akpm@linux-foundation.org: fix up code comment]
Signed-off-by: default avatarsrinidhi kasagar <srinidhi.kasagar@stericsson.com>
Tested-by: default avatarNaga Radhesh <naga.radheshy@stericsson.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 488bc35b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment