leds: lm3692x: Use flags from LM3692X_BOOST_CTRL
The current setup of LM3692X_BOOST_CTRL uses flags from LM3692X_BRT_CTRL. Use flags from LM3692X_BOOST_CTRL but leave the resulting register value 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
396128d2ff
commit
846d0d14e7
|
@ -250,9 +250,9 @@ static int lm3692x_init(struct lm3692x_led *led)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
ret = regmap_write(led->regmap, LM3692X_BOOST_CTRL,
|
ret = regmap_write(led->regmap, LM3692X_BOOST_CTRL,
|
||||||
LM3692X_BRHT_MODE_RAMP_MULTI |
|
LM3692X_BOOST_SW_1MHZ |
|
||||||
LM3692X_BL_ADJ_POL |
|
LM3692X_BOOST_SW_NO_SHIFT |
|
||||||
LM3692X_RAMP_RATE_250us);
|
LM3692X_OCP_PROT_1_5A);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue