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

backlight: lp8788: 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
058be4d6 6cb9644d

+6
+6
drivers/video/backlight/lp8788_bl.c
··· 145 145 } 146 146 147 147 bl->pwm = pwm; 148 + 149 + /* 150 + * FIXME: pwm_apply_args() should be removed when switching to 151 + * the atomic PWM API. 152 + */ 153 + pwm_apply_args(pwm); 148 154 } 149 155 150 156 pwm_config(bl->pwm, duty, period);