OSDN Git Service

pinctrl: st: Use second parameter to gpio specifier
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 10 Aug 2016 13:12:58 +0000 (15:12 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Aug 2016 14:05:45 +0000 (16:05 +0200)
commit1e23437563dd3ad57e30c5d6c29995a982fd649b
tree34e40500ec9fe7fb17d7dbff5b2f0eddcf1de1b5
parent0f9d85b7aca3764d7f93699129a89c11535abe1a
pinctrl: st: Use second parameter to gpio specifier

This patch allows to use the second parameter of gpio
specifier, which is used to specify whether the gpio is
active high or low.

Simply remove specific of_xlate callback() and of_gpio_n_cells
and use default one set by of_gpiochip_add() which allows
to use second parameter gpio specifier.

Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/pinctrl-st.txt
drivers/pinctrl/pinctrl-st.c