2024-01-31 19:43:23

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH 08/22] gpio: sysfs: use gpio_device_find() to iterate over existing devices

On Tue, Jan 30, 2024 at 1:48 PM Bartosz Golaszewski <[email protected]> wrote:

> From: Bartosz Golaszewski <[email protected]>
>
> With the list of GPIO devices now protected with SRCU we can use
> gpio_device_find() to traverse it from sysfs.
>
> Signed-off-by: Bartosz Golaszewski <[email protected]>

This is beautiful. And you can make the list private too.
Reviewed-by: Linus Walleij <[email protected]>

Yours,
Linus Walleij