pwm: rockchip: 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:04 +0000 (17:37 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 Sep 2019 23:48:55 +0000 (01:48 +0200)
commit797a5ebc26daee5552e668ee4622bc3f47c1f743
tree71b37f222dc6144a51493500b9becfb7d1698375
parent01ccf903edd65f6421612321648fa5a7f4b7cb10
pwm: rockchip: Don't update the state for the caller of pwm_apply_state()

The pwm-rockchip 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-rockchip.c