[<prev] [next>] [day] [month] [year] [list]
Message-ID: <7d6c10b52bbb29925fff9d2f16788a65c138921e.1702890244.git.sean@mess.org>
Date: Mon, 18 Dec 2023 09:06:43 +0000
From: Sean Young <sean@...s.org>
To: linux-media@...r.kernel.org,
linux-pwm@...r.kernel.org,
Ivaylo Dimitrov <ivo.g.dimitrov.75@...il.com>,
Thierry Reding <thierry.reding@...il.com>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: Sean Young <sean@...s.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH v9 2/6] 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@...s.org>
---
include/linux/pwm.h | 4 ++--
1 file 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,
--
2.43.0
Powered by blists - more mailing lists