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

2023-03-31 Thread Tom Rini
On Fri, Mar 17, 2023 at 09:12:22PM +0100, Rasmus Villemoes 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. > >

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

2023-03-19 Thread Simon Glass
Hi Rasmus, On Sun, 19 Mar 2023 at 13:38, Rasmus Villemoes wrote: > > On 18/03/2023 21.20, Simon Glass wrote: > > Hi Rasmus, > > > > On Fri, 17 Mar 2023 at 14:13, Rasmus Villemoes > > wrote: > >> > >> The API is more convenient to use if one doesn't have to know upfront > >> which gpio

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

2023-03-18 Thread Rasmus Villemoes
On 18/03/2023 21.20, Simon Glass wrote: > Hi Rasmus, > > On Fri, 17 Mar 2023 at 14:13, Rasmus Villemoes > 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

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

2023-03-18 Thread Simon Glass
Hi Rasmus, On Fri, 17 Mar 2023 at 14:13, Rasmus Villemoes 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. > >

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

2023-03-17 Thread Rasmus Villemoes
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 --- drivers/gpio/gpio-uclass.c | 7 +++