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>
This commit is contained in:
parent
846d0d14e7
commit
da61a66a82
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue