2023-12-19 16:31:17

by Sean Young

[permalink] [raw]
Subject: [PATCH v10 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 <[email protected]>
---
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



2023-12-19 17:10:41

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH v10 2/6] pwm: Replace ENOTSUPP with EOPNOTSUPP

On Tue, Dec 19, 2023 at 04:30:25PM +0000, Sean Young wrote:
> According to Documentation/dev-tools/checkpatch.rst ENOTSUPP is
> not recommended and EOPNOTSUPP should be used instead.
>
> Signed-off-by: Sean Young <[email protected]>

Acked-by: Uwe Kleine-K?nig <[email protected]>

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | https://www.pengutronix.de/ |


Attachments:
(No filename) (478.00 B)
signature.asc (499.00 B)
Download all attachments