backlight: lm3630a: Convert to atomic PWM API and check for errors
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 Jun 2021 12:21:48 +0000 (14:21 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 22 Jun 2021 13:11:37 +0000 (14:11 +0100)
commit1181f2164135d770bdad297290b73d274787389b
tree134fa16640e815f05d3fd83be8be8a027f6ea9f8
parentb9481a667a90ec739995e85f91f3672ca44d6ffa
backlight: lm3630a: Convert to atomic PWM API and check for errors

The practical upside here is that this only needs a single API call to
program the hardware which (depending on the underlaying hardware) can
be more effective and prevents glitches.

Up to now the return value of the pwm functions was ignored. Fix this
and propagate the error to the caller.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/lm3630a_bl.c