pwm: jz4740: Apply configuration atomically
authorPaul Cercueil <paul@crapouillou.net>
Fri, 7 Jun 2019 15:44:07 +0000 (17:44 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 25 Jun 2019 13:02:51 +0000 (15:02 +0200)
commit1ac99c58bda9b911d6e47ed6d4d04a2b00ff703b
tree8f9105a5fc393f29eab7cdbf339525669e078ce1
parent93808aca349c5fde6e258640939a1c00fd8a715e
pwm: jz4740: Apply configuration atomically

This is cleaner, more future-proof, and incidentally it also fixes the
PWM resetting its config when stopped/started several times.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-jz4740.c