Skip to content
Commit e76a322a authored by Axel Lin's avatar Axel Lin Committed by Bryan Wu
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarG.Shark <Jeong&lt;gshark.jeong@gmail.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent 8b7cfbec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment