Skip to content

gpiolib: A fix and a few cleanups

Andy Shevchenko linux-gpio lkml 4 versions – Applied

Status from this message: Queued for fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/24 patches 4 repliesApplied
  2. v3 posting 1/25 patches 0 repliesApplied 5/5
  3. v25 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Changes in v3 from the cover letter

- 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

Patches in v3 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/4gpiolib: Never return internal error codes to user spacedrivers/gpio/gpiolib-cdev.c drivers/gpio/gpiolib-sysfs.c drivers/gpio/gpiolib.h+17 -81 reply
2/4gpiolib: Introduce for_each_gpio_desc_with_flag() macrodrivers/gpio/gpiolib-of.c drivers/gpio/gpiolib-sysfs.c drivers/gpio/gpiolib.c +1 more+16 -150 replies
3/4gpiolib: Use short form of ternary operator in gpiod_get_index()drivers/gpio/gpiolib.c+3 -40 replies
4/4gpiolib: Simplify error path in gpiod_get_index() when requesting GPIOdrivers/gpio/gpiolib.c+12 -130 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] gpiolib: A fix and a few cleanups

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(-)
Signature · 1 line
2.34.1