Skip to content

Commit da61a66

Browse files
agxpavelmachek
authored andcommitted
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 <[email protected]> Reviewed-by: Dan Murphy <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 846d0d1 commit da61a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/leds/leds-lm3692x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static int lm3692x_init(struct lm3692x_led *led)
269269
goto out;
270270

271271
ret = regmap_write(led->regmap, LM3692X_BRT_CTRL,
272-
LM3692X_BL_ADJ_POL | LM3692X_PWM_HYSTER_4LSB);
272+
LM3692X_BL_ADJ_POL | LM3692X_RAMP_EN);
273273
if (ret)
274274
goto out;
275275

0 commit comments

Comments
 (0)