]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: nomadik: improve GPIO debug prints
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Sep 2014 13:05:21 +0000 (15:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Sep 2014 13:07:22 +0000 (15:07 +0200)
commit3f3fb1b6989f2667c9120cb14b9af6ee3a23fc64
treeccac6b26e503e73d7e31cd222ad1c2f25056458b
parent84cc49e20aac4c51fa369b166ed48385daeb8cfd
pinctrl: nomadik: improve GPIO debug prints

The debugfs file would only define if the line was "pulled" and
not which direction (pull up or pull down). Improve this by
taking two print paths depending on whether the pin is set as
input or output and use the data register directly to figure
out whether the pin is set for pull up or pull down.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c