Re: [PATCH 5/5] gpio: of: factor out common code to a new helper function

2016-06-23 Thread Linus Walleij
On Tue, Jun 14, 2016 at 12:07 PM, Masahiro Yamada wrote: > The conversion from a DT spec to struct gpio_desc is common between > of_get_named_gpiod_flags() and of_parse_own_gpio(). Factor out the > common code to a new helper, of_xlate_and_get_gpiod_flags(). > > Signed-off-by: Masahiro Yamada

[PATCH 5/5] gpio: of: factor out common code to a new helper function

2016-06-14 Thread Masahiro Yamada
The conversion from a DT spec to struct gpio_desc is common between of_get_named_gpiod_flags() and of_parse_own_gpio(). Factor out the common code to a new helper, of_xlate_and_get_gpiod_flags(). Signed-off-by: Masahiro Yamada --- drivers/gpio/gpiolib-of.c | 37 ++--