Re: [PATCH 2/5] gpio: of: drop needless gpio_chip look-up in of_parse_own_gpio()

2016-06-23 Thread Linus Walleij
On Tue, Jun 14, 2016 at 12:07 PM, Masahiro Yamada wrote: > This function is doing more complicated than needed. The caller of > this function, of_gpiochip_scan_gpios() already knows the pointer to > the gpio_chip. It can pass it to of_parse_own_gpio() instead of > looking up the gpio_chip by gp

[PATCH 2/5] gpio: of: drop needless gpio_chip look-up in of_parse_own_gpio()

2016-06-14 Thread Masahiro Yamada
This function is doing more complicated than needed. The caller of this function, of_gpiochip_scan_gpios() already knows the pointer to the gpio_chip. It can pass it to of_parse_own_gpio() instead of looking up the gpio_chip by gpiochip_find(). Signed-off-by: Masahiro Yamada --- drivers/gpio/