Re: [PATCH v2 0/5] gpiolib: Add and utilise for_each_gpio_property_name()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 19, 2024 at 4:29 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> 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)

All patches in this set look good to me:

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux