Skip to content

gpiolib: finish conversion to devm_*_action*() APIs

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 Latest3 patches 12 repliesApplied
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- dropped actually unneeded patch (Raag)
- rewrote last patch as suggested (Raag)
- collected tags (Raag)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3devres: Move devm_*_action*() APIs to devres.hinclude/linux/device.h include/linux/device/devres.h+39 -381 reply
2/3devres: Add devm_is_action_added() helperdrivers/base/devres.c include/linux/device/devres.h+13 -01 reply
3/3gpiolib: devres: Finish the conversion to use devm_add_action()drivers/gpio/gpiolib-devres.c+25 -650 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRaag JadavZijun HuGreg Kroah-Hartman
SeriesA-b
1/3R-b R-b
2/3R-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] gpiolib: finish conversion to devm_*_action*() APIs

GPIOLIB has some open coded stuff that can be folded to the devm_*_action*() calls. This mini-series is for that. The necessary prerequisites are here as well, namely:
1) moving the respective APIs to the devres.h;
2) adding a simple helper that GPIOLIB will rely on;
3) finishing the GPIOLIB conversion to the device managed action APIs.

The series is based on another series that's available via immutable tag devres-iio-input-pinctrl-v6.15 [1]. The idea is to route this via GPIOLIB tree (or Intel GPIO for the starter) with an immutable tag for the device core and others if needed. Please, review and acknowledge.

Changelog v2:
- dropped actually unneeded patch (Raag)
- rewrote last patch as suggested (Raag)
- collected tags (Raag)

Andy Shevchenko (3):
devres: Move devm_*_action*() APIs to devres.h
devres: Add devm_is_action_added() helper
gpiolib: devres: Finish the conversion to use devm_add_action()

 drivers/base/devres.c         | 11 +++++
 drivers/gpio/gpiolib-devres.c | 90 ++++++++++-------------------------
 include/linux/device.h        | 38 ---------------
 include/linux/device/devres.h | 41 ++++++++++++++++
 4 files changed, 77 insertions(+), 103 deletions(-)

base-commit: 9deb15de8ca27cf9cba0d2bac53bbe37c836591b

Signature · 1 line
2.45.1.3035.g276e886db78b