linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] gpiolib: Add and utilise for_each_gpio_property_name()
@ 2024-08-19 14:28 Andy Shevchenko
  2024-08-19 14:28 ` [PATCH v2 1/5] gpiolib: Introduce for_each_gpio_property_name() helper Andy Shevchenko
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Andy Shevchenko @ 2024-08-19 14:28 UTC (permalink / raw)
  To: Andy Shevchenko, Bartosz Golaszewski, linux-gpio, linux-acpi,
	linux-kernel
  Cc: Mika Westerberg, Linus Walleij, Bartosz Golaszewski

There are a few of duplication of the same for-loop against GPIO
suffixes. This series addresses that along with proposal to eliminate
the exported gpio_suffix_count by converting the array to be
NULL-terminated.

v2:
- fixed a rebase issue (LKP)

Andy Shevchenko (5):
  gpiolib: Introduce for_each_gpio_property_name() helper
  gpiolib: swnode: Unify return code variable name
  gpiolib: swnode: Introduce swnode_gpio_get_reference() helper
  gpiolib: swnode: Make use of for_each_gpio_property_name()
  gpiolib: Replace gpio_suffix_count with NULL-terminated array

 drivers/gpio/gpiolib-acpi.c   | 21 ++----------
 drivers/gpio/gpiolib-of.c     | 25 +++------------
 drivers/gpio/gpiolib-swnode.c | 60 ++++++++++++++++-------------------
 drivers/gpio/gpiolib.c        |  3 +-
 drivers/gpio/gpiolib.h        | 16 ++++++++--
 5 files changed, 49 insertions(+), 76 deletions(-)

-- 
2.43.0.rc1.1336.g36b5255a03ac


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-08-29 10:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 14:28 [PATCH v2 0/5] gpiolib: Add and utilise for_each_gpio_property_name() Andy Shevchenko
2024-08-19 14:28 ` [PATCH v2 1/5] gpiolib: Introduce for_each_gpio_property_name() helper Andy Shevchenko
2024-08-19 14:28 ` [PATCH v2 2/5] gpiolib: swnode: Unify return code variable name Andy Shevchenko
2024-08-19 14:28 ` [PATCH v2 3/5] gpiolib: swnode: Introduce swnode_gpio_get_reference() helper Andy Shevchenko
2024-08-19 14:28 ` [PATCH v2 4/5] gpiolib: swnode: Make use of for_each_gpio_property_name() Andy Shevchenko
2024-08-19 14:29 ` [PATCH v2 5/5] gpiolib: Replace gpio_suffix_count with NULL-terminated array Andy Shevchenko
2024-08-20  8:33 ` [PATCH v2 0/5] gpiolib: Add and utilise for_each_gpio_property_name() Bartosz Golaszewski
2024-08-24 14:43 ` Linus Walleij
2024-08-29 10:45 ` Rafael J. Wysocki

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).