pwm: sun4i: Don't update the state for the caller of pwm_apply_state()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sat, 24 Aug 2019 15:37:05 +0000 (17:37 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 Sep 2019 23:48:55 +0000 (01:48 +0200)
commitdeb9c462f4e539cc7f8389b9855eb7a507c78e7e
treec91692f7ff04b4a10b46b0d348016588e6ac6b28
parent797a5ebc26daee5552e668ee4622bc3f47c1f743
pwm: sun4i: Don't update the state for the caller of pwm_apply_state()

The pwm-sun4i driver is one of only three PWM drivers which updates the
state for the caller of pwm_apply_state(). This might have surprising
results if the caller reuses the values expecting them to still
represent the same 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-sun4i.c