From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <brgl@bgdev.pl>
Subject: [PATCH v3 0/4] gpiolib: A fix and a few cleanups
Date: Tue, 1 Feb 2022 17:27:54 +0200 [thread overview]
Message-ID: <20220201152758.40391-1-andriy.shevchenko@linux.intel.com> (raw)
Patch 1 is a fix for wrong error code to user space.
Patches 2-4 are small cleanups.
Can be routed via my tree, or directly into GPIO, whatever maintainers
prefer.
Changelog v3:
- joined two patches into a single fix (Bart)
- added Rb tag (Linus)
- renamed for_each_gpio_desc_with_flag() macro to be descriptive (Johan)
- added two new cleanups
Andy Shevchenko (4):
gpiolib: Never return internal error codes to user space
gpiolib: Introduce for_each_gpio_desc_with_flag() macro
gpiolib: Use short form of ternary operator in gpiod_get_index()
gpiolib: Simplify error path in gpiod_get_index() when requesting GPIO
drivers/gpio/gpiolib-cdev.c | 6 +++---
drivers/gpio/gpiolib-of.c | 10 ++++------
drivers/gpio/gpiolib-sysfs.c | 14 ++++----------
drivers/gpio/gpiolib.c | 35 ++++++++++++++++-------------------
drivers/gpio/gpiolib.h | 19 +++++++++++++++++++
5 files changed, 46 insertions(+), 38 deletions(-)
--
2.34.1
next reply other threads:[~2022-02-01 15:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 15:27 Andy Shevchenko [this message]
2022-02-01 15:27 ` [PATCH v3 1/4] gpiolib: Never return internal error codes to user space Andy Shevchenko
2022-02-08 9:34 ` Bartosz Golaszewski
2022-02-01 15:27 ` [PATCH v3 2/4] gpiolib: Introduce for_each_gpio_desc_with_flag() macro Andy Shevchenko
2022-02-01 15:27 ` [PATCH v3 3/4] gpiolib: Use short form of ternary operator in gpiod_get_index() Andy Shevchenko
2022-02-01 15:27 ` [PATCH v3 4/4] gpiolib: Simplify error path in gpiod_get_index() when requesting GPIO Andy Shevchenko
2022-02-07 14:43 ` [PATCH v3 0/4] gpiolib: A fix and a few cleanups Andy Shevchenko
2022-02-08 9:36 ` Bartosz Golaszewski
2022-02-08 13:29 ` Andy Shevchenko
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=20220201152758.40391-1-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bgolaszewski@baylibre.com \
--cc=brgl@bgdev.pl \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@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).