From: Lee Jones Date: Wed, 18 Mar 2015 17:21:18 +0000 (+0000) Subject: pinctrl: st: Show correct pin direction also in GPIO mode X-Git-Tag: omap-for-v4.2/o2_dc~138^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2ed0e88ecba59775a25b3cc237eed1faf71a9aa;p=pandora-kernel.git pinctrl: st: Show correct pin direction also in GPIO mode Until now ST's pinconf_dbg_show() call-back has displayed the PIO alternate function direction, which is only relevant if a pin is operating in an alternate function mode i.e not GPIO mode. If a pin is in GPIO mode its direction is both set and status is obtained by a completely different/unrelated bunch of registers. This change ensures that the correct pin direction is shown, even if a pin is operating in GPIO mode. Reported-by: Olivier Clergeaud Acked-by: Maxime Coquelin Signed-off-by: Lee Jones Signed-off-by: Linus Walleij --- Reading git-diff-tree failed