gpio: of: factor out common code to a new helper function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jun 2016 10:07:07 +0000 (19:07 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jun 2016 09:07:12 +0000 (11:07 +0200)
commit99468c1af913bb5662c223b68e783b4bf9200184
treebe0e9fc9480a7966d314c5651205e60307b5e641
parent762c2e46c0591d207289105c8718e4adf29b2b34
gpio: of: factor out common code to a new helper function

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 <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c