gpio: of: optimize "gpios" property parsing of of_parse_own_gpio()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jun 2016 10:07:03 +0000 (19:07 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jun 2016 09:07:10 +0000 (11:07 +0200)
commit3f9547e1c9f06219c5788668ea2f7495d3b13f60
tree8d96c64399cbbc54508ca247be507b4ed98033c3
parent7e7c059cb50c7c72d5a393b2c34fc57de1b01b55
gpio: of: optimize "gpios" property parsing of of_parse_own_gpio()

Call of_property_read_u32_array() only once rather than iterating
of_property_read_u32_index().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c