pinctrl: st: Introduce a 'get pin function' call
authorLee Jones <lee.jones@linaro.org>
Wed, 18 Mar 2015 17:21:15 +0000 (17:21 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 25 Mar 2015 15:35:10 +0000 (16:35 +0100)
commitc2a4bf47089823bb76d2498eebda922ecf99546d
tree2156c819cb6af78e12b7cee8a13d780a2fc0bdbf
parente4c02dced975cbb3e7cb097a0895ce0143b3386a
pinctrl: st: Introduce a 'get pin function' call

This call fetches the numerical function value a specified pin is
currently operating in.  Function zero is more often than not the
GPIO function.  Greater than zero values represent an alternative
function.  You'd need to either look those up in the Device Tree
sources or the Programmer's Manual.

Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-st.c