]> git.baikalelectronics.ru Git - kernel.git/commit
leds: lm3642: Use regmap_update_bits() in lm3642_chip_init()
authorAxel Lin <axel.lin@ingics.com>
Sat, 22 Sep 2012 06:40:14 +0000 (14:40 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Mon, 24 Sep 2012 04:24:22 +0000 (12:24 +0800)
commit4087b4259be8bf859f859005e7f3918ae897bd1c
tree1d811be54daa4c11b196fea6f9b8457318cd9e29
parentd9ab19bdd8eb7cdafaf2e0d0658565dee65a579e
leds: lm3642: Use regmap_update_bits() in lm3642_chip_init()

Use regmap_update_bits() to replace regmap_read() + regmap_write().
With this patch, we only show the error message when regmap_update_bits()
fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: G.Shark Jeong<gshark.jeong@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-lm3642.c