pwm: rcar: Make use of pwm_is_enabled()
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 30 Mar 2016 20:03:24 +0000 (22:03 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 17 May 2016 12:44:57 +0000 (14:44 +0200)
commit3587c260906259632df07652743269627f408d85
tree9bf1eaa5639237e91bae0b355b8262f1ce809405
parent3f1f368e4ab5ac2692e3dfec66a9e6a0a2f6cea7
pwm: rcar: Make use of pwm_is_enabled()

Commit 5c31252c4a86 ("pwm: Add the pwm_is_enabled() helper") introduced
a new function to test whether a PWM device is enabled or not without
manipulating PWM internal fields.

Hiding this is necessary if we want to smoothly move to the atomic PWM
config approach without impacting PWM drivers. Fix this driver to use
pwm_is_enabled() instead of directly accessing the ->flags field.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rcar.c
This page took 0.026423 seconds and 5 git commands to generate.