]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90c9f8036f061f8a07d35fc4e6f938712dc5ce7a
tree71b37f222dc6144a51493500b9becfb7d1698375
parent01c47f124622a39e977bb6fcd2fd04696d52a2ce
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