]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06969cd5b9f9133aef7977a01f85ffa8b99ba36e
tree134fa16640e815f05d3fd83be8be8a027f6ea9f8
parent82cbb09039cf99360e0c8160015c32ce72920df6
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