diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-09-21 23:12:12 +0200 |
---|---|---|
committer | Pavel <pavel@ucw.cz> | 2019-11-03 17:38:04 +0100 |
commit | da61a66a829d67b854089aa5ec4c5a2031bb0864 (patch) | |
tree | 1d32c6c8de762c4d3f99a0f2f6abd20efd2347ea /drivers/leds/leds-lm3692x.c | |
parent | leds: lm3692x: Use flags from LM3692X_BOOST_CTRL (diff) | |
download | linux-da61a66a829d67b854089aa5ec4c5a2031bb0864.tar.xz linux-da61a66a829d67b854089aa5ec4c5a2031bb0864.zip |
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>
Diffstat (limited to 'drivers/leds/leds-lm3692x.c')
-rw-r--r-- | drivers/leds/leds-lm3692x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-lm3692x.c b/drivers/leds/leds-lm3692x.c index a57b1571e359..8b408102e138 100644 --- a/drivers/leds/leds-lm3692x.c +++ b/drivers/leds/leds-lm3692x.c @@ -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; |