From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
linux-gpio <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH v1] gpiolib: Extract gpiod_not_found() helper
Date: Mon, 26 Oct 2020 15:24:55 +0100 [thread overview]
Message-ID: <CAMpxmJV3hGEq7BDD2fuUHkdxGTOA9gwkmZSv_YiT28YNXgR6BQ@mail.gmail.com> (raw)
In-Reply-To: <20201021142528.10285-1-andriy.shevchenko@linux.intel.com>
On Wed, Oct 21, 2020 at 4:25 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> Several places in the code are using same idiom, i.e.
> IS_ERR(desc) && PTR_ERR(desc) == -ENOENT
> which meaning is GPIO description is not found.
>
> For better readability extract gpiod_not_found() helper and use it.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
Applied, thanks!
Bartosz
prev parent reply other threads:[~2020-10-26 14:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-21 14:25 [PATCH v1] gpiolib: Extract gpiod_not_found() helper Andy Shevchenko
2020-10-26 14:24 ` 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=CAMpxmJV3hGEq7BDD2fuUHkdxGTOA9gwkmZSv_YiT28YNXgR6BQ@mail.gmail.com \
--to=bgolaszewski@baylibre.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.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 NNTP newsgroup(s).