Skip to content

gpiolib: generalize GPIO line names property

Bartosz Golaszewski linux-acpi linux-gpio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- actually remove the previous devprop source file in patch 3
- rename the string counting functions to something more explicit

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3device: property: add helpers to count items in string arraysinclude/linux/property.h+13 -00 replies
2/3gpiolib: generalize devprop_gpiochip_set_names() for device propertiesdrivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib-devprop.c drivers/gpio/gpiolib-of.c +2 more+15 -240 replies
3/3gpiolib: unexport devprop_gpiochip_set_names()drivers/gpio/Makefile drivers/gpio/gpiolib-devprop.c drivers/gpio/gpiolib.c +1 more+47 -660 replies

Reviews trailers per patch

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

PatchAndy ShevchenkoMika Westerberg
SeriesR-b R-b
1/3
2/3R-b
3/3

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/3] gpiolib: generalize GPIO line names property

From: Bartosz Golaszewski <[email protected]>

I initially sent this as part of the gpio-mockup overhaul but since these patches are indepentent and the work on gpio-mockup may become more complicated - I'm sending these separately.

The only change is adding additional property helpers to count strings in array.

v1 -> v2:
- actually remove the previous devprop source file in patch 3
- rename the string counting functions to something more explicit

Bartosz Golaszewski (3):
device: property: add helpers to count items in string arrays
gpiolib: generalize devprop_gpiochip_set_names() for device properties
gpiolib: unexport devprop_gpiochip_set_names()

 drivers/gpio/Makefile          |  1 -
 drivers/gpio/gpiolib-acpi.c    |  3 --
 drivers/gpio/gpiolib-devprop.c | 63 ----------------------------------
 drivers/gpio/gpiolib-of.c      |  5 ---
 drivers/gpio/gpiolib.c         | 55 ++++++++++++++++++++++++++---
 include/linux/gpio/driver.h    |  3 --
 include/linux/property.h       | 13 +++++++
 7 files changed, 64 insertions(+), 79 deletions(-)
 delete mode 100644 drivers/gpio/gpiolib-devprop.c
Signature · 1 line
2.26.1