Skip to content

Commit dc518b3

Browse files
seanyoungthierryreding
authored andcommitted
pwm: Replace ENOTSUPP with EOPNOTSUPP
According to Documentation/dev-tools/checkpatch.rst ENOTSUPP is not recommended and EOPNOTSUPP should be used instead. Signed-off-by: Sean Young <sean@mess.org> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent c748a6d commit dc518b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/pwm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@ static inline int pwm_apply_might_sleep(struct pwm_device *pwm,
407407
const struct pwm_state *state)
408408
{
409409
might_sleep();
410-
return -ENOTSUPP;
410+
return -EOPNOTSUPP;
411411
}
412412

413413
static inline int pwm_adjust_config(struct pwm_device *pwm)
414414
{
415-
return -ENOTSUPP;
415+
return -EOPNOTSUPP;
416416
}
417417

418418
static inline int pwm_config(struct pwm_device *pwm, int duty_ns,

0 commit comments

Comments
 (0)