Skip to content

Commit

Permalink
leds: lm3692x: Use flags from LM3692X_BRT_CTRL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guido Günther authored and Pavel committed Nov 3, 2019
1 parent 846d0d1 commit da61a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-lm3692x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da61a66

Please sign in to comment.