]> 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)
commit8dadce71c54c8651641adbb22976b9f61cc36a6c
treeccac6b26e503e73d7e31cd222ad1c2f25056458b
parent9e2e7162b7d2c1303780c9b8c3ef8f457d9ae402
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