]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pwm: Add the pwm_is_enabled() helper
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Wed, 1 Jul 2015 08:21:47 +0000 (10:21 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jul 2015 07:46:06 +0000 (09:46 +0200)
commit5c31252c4a86dc591c23f1a951edd52ad791ef0e
tree4a955e92027bbf95cd5fc9222245c0e4c8810a43
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
pwm: Add the pwm_is_enabled() helper

Some PWM drivers are testing the PWMF_ENABLED flag. Create a helper
function to hide the logic behind enabled test. This will allow us to
smoothly move from the current approach to an atomic PWM update
approach.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
13 files changed:
drivers/pwm/core.c
drivers/pwm/pwm-atmel-tcb.c
drivers/pwm/pwm-atmel.c
drivers/pwm/pwm-bcm-kona.c
drivers/pwm/pwm-ep93xx.c
drivers/pwm/pwm-imx.c
drivers/pwm/pwm-mxs.c
drivers/pwm/pwm-renesas-tpu.c
drivers/pwm/pwm-tegra.c
drivers/pwm/pwm-tiecap.c
drivers/pwm/pwm-tiehrpwm.c
drivers/pwm/sysfs.c
include/linux/pwm.h