mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
From 2ab50e393e0c2f5027fe13265bd0951f539ae59f Mon Sep 17 00:00:00 2001
|
||
|
From: Sean Young <sean@mess.org>
|
||
|
Date: Tue, 19 Dec 2023 16:30:25 +0000
|
||
|
Subject: [PATCH 0938/1085] pwm: Replace ENOTSUPP with EOPNOTSUPP
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
commit dc518b378dced419baa95d76a85f4c8c405722bc upstream.
|
||
|
|
||
|
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>
|
||
|
---
|
||
|
include/linux/pwm.h | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/include/linux/pwm.h
|
||
|
+++ b/include/linux/pwm.h
|
||
|
@@ -412,12 +412,12 @@ static inline int pwm_apply_might_sleep(
|
||
|
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,
|