pwm: fsl-ftm: Don't update the state for the caller of pwm_apply_state()
authorUwe Kleine-König <uwe@kleine-koenig.org>
Sat, 24 Aug 2019 15:37:06 +0000 (17:37 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 Sep 2019 23:48:55 +0000 (01:48 +0200)
commitc9675829ba4b0e95c613f6d6d83d2b5cb9c5371c
tree6a69a1c7745ffde73aa36befcbac90b94322fa44
parentdeb9c462f4e539cc7f8389b9855eb7a507c78e7e
pwm: fsl-ftm: Don't update the state for the caller of pwm_apply_state()

The pwm-fsl-ftm 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 <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-fsl-ftm.c