Re: [PATCH] gpiolib: Avoid calling chip->request() for unused gpios

2018-08-10 Thread Linus Walleij
On Tue, Aug 7, 2018 at 9:21 AM Biju Das wrote: > Add a check for unused gpios to avoid chip->request() call to client > driver for unused gpios. > > Signed-off-by: Biju Das > Reviewed-by: Fabrizio Castro Patch applied with Geert's ACK. Yours, Linus Walleij

Re: [PATCH] gpiolib: Avoid calling chip->request() for unused gpios

2018-08-07 Thread Geert Uytterhoeven
Hi Biju, Thanks for your patch! On Tue, Aug 7, 2018 at 9:21 AM Biju Das wrote: > Add a check for unused gpios to avoid chip->request() call to client > driver for unused gpios. "... so not every driver has to do this in its chip->request() callback." Note that currently no driver seems to

[PATCH] gpiolib: Avoid calling chip->request() for unused gpios

2018-08-07 Thread Biju Das
Add a check for unused gpios to avoid chip->request() call to client driver for unused gpios. Signed-off-by: Biju Das Reviewed-by: Fabrizio Castro --- drivers/gpio/gpiolib.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib.c