summaryrefslogtreecommitdiff
path: root/include/linux/pwm.h
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2023-12-19 19:30:25 +0300
committerThierry Reding <thierry.reding@gmail.com>2023-12-20 18:07:04 +0300
commitdc518b378dced419baa95d76a85f4c8c405722bc (patch)
tree9aab26eb5b63d6b105205f199c09bc2d243d2d42 /include/linux/pwm.h
parentc748a6d77c06a78651030e17da6beb278a1c9470 (diff)
downloadlinux-dc518b378dced419baa95d76a85f4c8c405722bc.tar.xz
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>
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r--include/linux/pwm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index b64b8a82415c..c9cb87b59ac8 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -407,12 +407,12 @@ static inline int pwm_apply_might_sleep(struct pwm_device *pwm,
const struct pwm_state *state)
{
might_sleep();
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
static inline int pwm_adjust_config(struct pwm_device *pwm)
{
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
static inline int pwm_config(struct pwm_device *pwm, int duty_ns,