]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60394c3f14caaf86fde8d1a87170aabcd086d5f4
tree34e40500ec9fe7fb17d7dbff5b2f0eddcf1de1b5
parent9b0c3ae64cdab3ce1996f00d8f2c2d533a54ec06
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