Commit f5641d05 authored by Kees Cook's avatar Kees Cook Committed by Thierry Reding

pwm: Add missing "CONFIG_" prefix

The IS_ENABLED() use was missing the CONFIG_ prefix which would have
lead to skipping this code.

Fixes: 3ad1f3a3 ("pwm: Implement some checks for lowlevel drivers")
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent d741cb04
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment