From: Boris Brezillon Date: Wed, 1 Jul 2015 08:21:47 +0000 (+0200) Subject: pwm: Add the pwm_is_enabled() helper X-Git-Tag: omap-for-v4.3/fixes-rc1~45^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c31252c4a86dc591c23f1a951edd52ad791ef0e;p=pandora-kernel.git 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 Signed-off-by: Thierry Reding --- Reading git-diff-tree failed