commit | 99468c1af913bb5662c223b68e783b4bf9200184 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Tue Jun 14 19:07:07 2016 +0900 |
committer | Linus Walleij <linus.walleij@linaro.org> | Thu Jun 23 11:07:12 2016 +0200 |
tree | be0e9fc9480a7966d314c5651205e60307b5e641 | |
parent | 762c2e46c0591d207289105c8718e4adf29b2b34 [diff] |
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>