projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb934d1
)
[HACK] drivers: leds: disable s2mpb02 FLED1 fault shutdown control
author
Jieun Yi
<jieun.yi@samsung.com>
Mon, 23 Jul 2018 02:51:07 +0000
(11:51 +0900)
committer
SOO BOK YEO
<rupin@samsung.com>
Thu, 26 Jul 2018 11:56:51 +0000
(20:56 +0900)
Change-Id: I9a3f3e34d985dad0c04bda6b4cd9a8762d71513a
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
drivers/leds/leds-s2mpb02.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/leds/leds-s2mpb02.c
b/drivers/leds/leds-s2mpb02.c
index c18c173835598ca9a74ade0e042b8a0b5273589b..ea9490e6e6ce60d17c6097dfb3148d4b98ebe982 100644
(file)
--- a/
drivers/leds/leds-s2mpb02.c
+++ b/
drivers/leds/leds-s2mpb02.c
@@
-223,6
+223,9
@@
static int s2mpb02_led_setup(struct s2mpb02_led_data *led_data)
ret |= s2mpb02_update_reg(led_data->i2c, S2MPB02_REG_FLED_CTRL1,
S2MPB02_FLED_CTRL1_LV_DISABLE, S2MPB02_FLED_CTRL1_LV_EN_MASK);
+ /* temp : set fault shutdown control disable */
+ ret |= s2mpb02_update_reg(led_data->i2c, S2MPB02_REG_FLED_CTRL1, 0x0, 0x20);
+
/* set current & timeout */
ret |= s2mpb02_update_reg(led_data->i2c, S2MPB02_REG_FLED_CUR1,
data->brightness << leds_shift[id], leds_mask[id]);