]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-renesas-tpu.c
dm persistent data: eliminate unnecessary return values
[linux.git] / drivers / pwm / pwm-renesas-tpu.c
index ee63f9e9d0fb752833f5dd596a8c3838d4e93cdb..075c1a764ba293dab3d1e39df05bc4b49f67b1b3 100644 (file)
@@ -301,7 +301,7 @@ static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *_pwm,
        pwm->duty = duty;
 
        /* If the channel is disabled we're done. */
-       if (!test_bit(PWMF_ENABLED, &_pwm->flags))
+       if (!pwm_is_enabled(_pwm))
                return 0;
 
        if (duty_only && pwm->timer_on) {
This page took 0.027057 seconds and 4 git commands to generate.