pwm: sun4i: Switch to atomic PWM
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 30 May 2017 19:32:08 +0000 (21:32 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 6 Jul 2017 07:05:21 +0000 (09:05 +0200)
commitc32c5c50d4fe156da1ecd32f2a16c1b8fcfba392
tree937302f091b3e742513dfdfa12d7f8974f567738
parent93e0dfb2c52f9cb7a7899156475b4e7b0bee7de3
pwm: sun4i: Switch to atomic PWM

Switch the driver to atomic PWM. This makes it easier to wait a proper
amount of time when changing the duty cycle before disabling the channel
(main use case is switching the duty cycle to 0 before disabling).

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c