pwm: imx: Rewrite v1 code to facilitate switch to atomic PWM
authorLukasz Majewski <l.majewski@majess.pl>
Sun, 29 Jan 2017 21:54:08 +0000 (22:54 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2017 08:12:42 +0000 (09:12 +0100)
commitb3c088fe0297d7580bef5d5830fa5fc69ae8443c
treeb062d963b3f8b7cdab2fa00811fa5480cc649f33
parent0038922954236a6af424e2604ece88404dfbc41c
pwm: imx: Rewrite v1 code to facilitate switch to atomic PWM

The code has been rewritten to remove "generic" calls to
imx_pwm_{enable|disable|config}.

Such approach would facilitate switch to atomic PWM (a.k.a ->apply())
implementation.

Suggested-by: Stefan Agner <stefan@agner.ch>
Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx.c