From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
William Breathitt Gray <william.gray@linaro.org>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
William Breathitt Gray <wbg@kernel.org>
Subject: Re: [PATCH v1 1/1] gpio: pcie-idio-24: Use -ENOTSUPP consistently
Date: Fri, 12 Apr 2024 21:37:29 +0200 [thread overview]
Message-ID: <CAMRc=Mew-w3bChf-Qy5PM00rNNtLziBa7XVP+B7t7xvgSywhAg@mail.gmail.com> (raw)
In-Reply-To: <20240410064156.1199493-1-andy.shevchenko@gmail.com>
On Wed, Apr 10, 2024 at 8:41 AM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
>
> The GPIO library expects the drivers to return -ENOTSUPP in some cases
> and not using analogue POSIX code. Make the driver to follow this.
>
> Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> ---
> drivers/gpio/gpio-pcie-idio-24.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-pcie-idio-24.c b/drivers/gpio/gpio-pcie-idio-24.c
> index 2efd1b1a0805f..7f7f95ad4343d 100644
> --- a/drivers/gpio/gpio-pcie-idio-24.c
> +++ b/drivers/gpio/gpio-pcie-idio-24.c
> @@ -267,7 +267,7 @@ static int idio_24_reg_mask_xlate(struct gpio_regmap *const gpio, const unsigned
> case IDIO_24_CONTROL_REG:
> /* We can only set direction for TTL/CMOS lines */
> if (offset < 48)
> - return -EOPNOTSUPP;
> + return -ENOTSUPP;
>
> *reg = IDIO_24_CONTROL_REG;
> *mask = CONTROL_REG_OUT_MODE;
> --
> 2.44.0
>
Applied, thanks!
Bart
prev parent reply other threads:[~2024-04-12 19:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-10 6:41 [PATCH v1 1/1] gpio: pcie-idio-24: Use -ENOTSUPP consistently Andy Shevchenko
2024-04-10 20:26 ` William Breathitt Gray
2024-04-12 10:28 ` Linus Walleij
2024-04-12 19:37 ` Bartosz Golaszewski [this message]
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='CAMRc=Mew-w3bChf-Qy5PM00rNNtLziBa7XVP+B7t7xvgSywhAg@mail.gmail.com' \
--to=brgl@bgdev.pl \
--cc=andy.shevchenko@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wbg@kernel.org \
--cc=william.gray@linaro.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).