]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: tc3589x: fix up .get_direction()
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Nov 2016 14:10:29 +0000 (15:10 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Nov 2016 09:33:30 +0000 (10:33 +0100)
commit1ee7fbfa042e6abae14b73bdc5701ee542ece4ff
treee15a4ae34b8d4060c4fd5fbb6d44b9fa37e6a2d3
parentc66fa1e73860317dea9db4a9374e98cede2a6d6f
gpio: tc3589x: fix up .get_direction()

The bit in the TC3589x direction register is 0 for input
and 1 for output, but the gpiolib expects the reverse.
Fix up the logic.

Cc: stable@vger.kernel.org
Fixes: 8f949b0ffe2b ("gpio: tc3589x: add .get_direction() and small cleanup")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tc3589x.c