pwm: stmpe: Handle errors when disabling the signal
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 14 Jul 2023 21:45:18 +0000 (23:45 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 07:49:18 +0000 (09:49 +0200)
commitb2c71e9f8dd0d023a847f6c38f9a83c0949ec01a
tree48b7e5ccce0a8f43e51daa715ad51d6f35dc359f
parent8c89fd866ad221af037ef0ec3d60b83d0b859c65
pwm: stmpe: Handle errors when disabling the signal

Before the pwm framework implementedatomic updates (with the .apply()
callback) the .disable() callback returned void. This is still visible
in the stmpe driver which drops errors in the disable path.

Improve the driver to forward failures in stmpe_24xx_pwm_disable() to
the caller of pwm_apply_state().

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-stmpe.c