[PATCH] gpio: allow passing NULL to gpio_request_by_line_name() to search all gpio controllers

Simon Glass sjg at chromium.org
Sat Mar 18 21:20:12 CET 2023


Hi Rasmus,

On Fri, 17 Mar 2023 at 14:13, Rasmus Villemoes
<rasmus.villemoes at prevas.dk> wrote:
>
> The API is more convenient to use if one doesn't have to know upfront
> which gpio controller has a line with the name one is searching for,
> and arrange to look that device up somehow. Or implement this loop
> oneself.
>
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>
> ---
>  drivers/gpio/gpio-uclass.c | 7 +++++++
>  include/asm-generic/gpio.h | 3 ++-
>  2 files changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

What is a line name? I don't see any mention of its purpose in the
binding doc[1].

Regards,
Simon

[1] https://github.com/devicetree-org/dt-schema/blob/3c35bfee83c2e38e2ae7af5f83eb89ca94a521e8/dtschema/schemas/gpio/gpio.yaml#L17


More information about the U-Boot mailing list