mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sean Young <sean@mess.org>
To: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org,
	"Ivaylo Dimitrov" <ivo.g.dimitrov.75@gmail.com>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Sean Young <sean@mess.org>, linux-kernel@vger.kernel.org
Subject: [PATCH v8 2/6] pwm: Replace ENOTSUPP with EOPNOTSUPP
Date: Tue, 12 Dec 2023 08:34:01 +0000	[thread overview]
Message-ID: <af5b2e8ac6695383111328267a689bcf1c0ecdb1.1702369869.git.sean@mess.org> (raw)
In-Reply-To: <cover.1702369869.git.sean@mess.org>

ENOTSUPP is not a standard error code and should be avoided.

Signed-off-by: Sean Young <sean@mess.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 b64b8a82415c4..c9cb87b59ac80 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


  parent reply	other threads:[~2023-12-12  8:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1702369869.git.sean@mess.org>
2023-12-12  8:34 ` [PATCH v8 1/6] pwm: Rename pwm_apply_state() to pwm_apply_might_sleep() Sean Young
2023-12-12 11:41   ` Uwe Kleine-König
2023-12-12 15:22     ` Guenter Roeck
2023-12-12 15:27       ` Mark Brown
2023-12-12  8:34 ` Sean Young [this message]
2023-12-12 11:31   ` [PATCH v8 2/6] pwm: Replace ENOTSUPP with EOPNOTSUPP Uwe Kleine-König
2023-12-12  8:34 ` [PATCH v8 3/6] pwm: renesas: Remove unused include Sean Young
2023-12-12 11:28   ` Uwe Kleine-König
2023-12-12  8:34 ` [PATCH v8 4/6] pwm: Make it possible to apply PWM changes in atomic context Sean Young
2023-12-12 11:48   ` Uwe Kleine-König
2023-12-18  9:03     ` Sean Young
2023-12-12  8:34 ` [PATCH v8 5/6] pwm: bcm2835: Allow PWM driver to be used " Sean Young
2023-12-12 11:50   ` Uwe Kleine-König
2023-12-12 16:08   ` Uwe Kleine-König
2023-12-12 16:11     ` Florian Fainelli
2023-12-12 18:14     ` Uwe Kleine-König
2023-12-18  9:02       ` Sean Young
2023-12-18  9:02     ` Sean Young
2023-12-12  8:34 ` [PATCH v8 6/6] media: pwm-ir-tx: Trigger edges from hrtimer interrupt context Sean Young

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=af5b2e8ac6695383111328267a689bcf1c0ecdb1.1702369869.git.sean@mess.org \
    --to=sean@mess.org \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®