Skip to content

Commit 2720c87

Browse files
ukleineklag-linaro
authored andcommitted
backlight: mp3309c: Drop pwm_apply_args()
pwm_apply_args() sole purpose is to initialize all parameters specified in the device tree for consumers that rely on pwm_config() and pwm_enable(). The mp3309c backlight driver uses pwm_apply_might_sleep() which gets passed the full configuration and so doesn't rely on the default being explicitly applied. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Tested-by: Flavio Suligoi <f.suligoi@asem.it> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Link: https://lore.kernel.org/r/2d1075f5dd45c7c135e4326e279468de699f9d17.1751361465.git.u.kleine-koenig@baylibre.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 8f5ae30 commit 2720c87

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/video/backlight/mp3309c.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ static int mp3309c_parse_fwnode(struct mp3309c_chip *chip,
222222
if (IS_ERR(chip->pwmd))
223223
return dev_err_probe(dev, PTR_ERR(chip->pwmd), "error getting pwm data\n");
224224
pdata->dimming_mode = DIMMING_PWM;
225-
pwm_apply_args(chip->pwmd);
226225
}
227226

228227
/*

0 commit comments

Comments
 (0)