1
0
Fork 0

leds: lm3692x: Use flags from LM3692X_BRT_CTRL

Use LM3692X_RAMP_EN instead of LM3692X_PWM_HYSTER_4LSB
since the later is a flag for the PWM register. The
actual register value remains unchanged.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
alistair/sunxi64-5.5-dsi
Guido Günther 2019-09-21 14:12:12 -07:00 committed by Pavel
parent 846d0d14e7
commit da61a66a82
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ static int lm3692x_init(struct lm3692x_led *led)
goto out;
ret = regmap_write(led->regmap, LM3692X_BRT_CTRL,
LM3692X_BL_ADJ_POL | LM3692X_PWM_HYSTER_4LSB);
LM3692X_BL_ADJ_POL | LM3692X_RAMP_EN);
if (ret)
goto out;