Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

backlight: lp855x: Explicitly apply PWM config extracted from pwm_args

Call pwm_apply_args() just after requesting the PWM device so that the
polarity and period are initialized according to the information
provided in pwm_args.

This is an intermediate state, and pwm_apply_args() should be dropped as
soon as the atomic PWM infrastructure is in place and the driver makes
use of it.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

Boris Brezillon and committed by
Thierry Reding
6fbab835 058be4d6

+6
+6
drivers/video/backlight/lp855x_bl.c
··· 246 246 return; 247 247 248 248 lp->pwm = pwm; 249 + 250 + /* 251 + * FIXME: pwm_apply_args() should be removed when switching to 252 + * the atomic PWM API. 253 + */ 254 + pwm_apply_args(pwm); 249 255 } 250 256 251 257 pwm_config(lp->pwm, duty, period);