Skip to content

gpiolib: Some cleanups

Andy Shevchenko linux-gpio lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied
  2. v17 patches 9 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8gpiolib: Make taking gpio_lookup_lock consistentdrivers/gpio/gpiolib.c+2 -60 replies
2/8gpiolib: Convert to use guard()() for gpio_machine_hogs_mutexdrivers/gpio/gpiolib.c+4 -80 replies
3/8gpiolib: Print actual error when descriptor contains an error pointerdrivers/gpio/gpiolib.c+1 -10 replies
4/8gpiolib: Revert "Don't WARN on gpiod_put() for optional GPIO"drivers/gpio/gpiolib.c+1 -20 replies
5/8gpiolib: Move validate_desc() and Co upper in the codedrivers/gpio/gpiolib.c+31 -310 replies
6/8gpiolib: Call validate_desc() when VALIDATE_DESC() can't be useddrivers/gpio/gpiolib.c+5 -110 replies
7/8gpiolib: Reuse return variable in gpiod_to_irq()drivers/gpio/gpiolib.c+4 -50 replies
8/8gpiolib: Remove redundant assignment of return variabledrivers/gpio/gpiolib.c+6 -70 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchLinus Walleij
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/8] gpiolib: Some cleanups

Just a three groups of cleanups (some of them may be dependent to the previous ones compile and logically wise, but I am only aware about couple of patches, i.e. 3 & 4).

In v2:
- split one patch to two (Linus)
- added tags (Linus)

Andy Shevchenko (8):
gpiolib: Make taking gpio_lookup_lock consistent
gpiolib: Convert to use guard()() for gpio_machine_hogs_mutex
gpiolib: Print actual error when descriptor contains an error pointer
gpiolib: Revert "Don't WARN on gpiod_put() for optional GPIO"
gpiolib: Move validate_desc() and Co upper in the code
gpiolib: Call validate_desc() when VALIDATE_DESC() can't be used
gpiolib: Reuse return variable in gpiod_to_irq()
gpiolib: Remove redundant assignment of return variable

 drivers/gpio/gpiolib.c | 123 ++++++++++++++++++-----------------------
 1 file changed, 53 insertions(+), 70 deletions(-)
Signature · 1 line
2.47.2