Commit da61a66a authored by Guido Günther's avatar Guido Günther Committed by Pavel

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: default avatarGuido Günther <agx@sigxcpu.org>
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 846d0d14
...@@ -269,7 +269,7 @@ static int lm3692x_init(struct lm3692x_led *led) ...@@ -269,7 +269,7 @@ static int lm3692x_init(struct lm3692x_led *led)
goto out; goto out;
ret = regmap_write(led->regmap, LM3692X_BRT_CTRL, 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) if (ret)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment