Skip to content

Commit

Permalink
pwm: Add missing "CONFIG_" prefix
Browse files Browse the repository at this point in the history
The IS_ENABLED() use was missing the CONFIG_ prefix which would have
lead to skipping this code.

Fixes: 3ad1f3a ("pwm: Implement some checks for lowlevel drivers")
Signed-off-by: Kees Cook <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
kees authored and thierryreding committed Jun 4, 2020
1 parent d741cb0 commit f5641d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pwm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label)
pwm->chip->ops->get_state(pwm->chip, pwm, &pwm->state);
trace_pwm_get(pwm, &pwm->state);

if (IS_ENABLED(PWM_DEBUG))
if (IS_ENABLED(CONFIG_PWM_DEBUG))
pwm->last = pwm->state;
}

Expand Down

0 comments on commit f5641d0

Please sign in to comment.