]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpio: exar: Fix reading of directions and values
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 9 Jun 2017 18:33:13 +0000 (20:33 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 08:16:23 +0000 (10:16 +0200)
commit7f45a875da46a112f781c25cfa9bcb93aaed4712
treee6d845a32b18bbdb3b74ff6e9c8d102f2a75354f
parent5dab5872e59390aa9cca26ee629b95f7179f6c77
gpio: exar: Fix reading of directions and values

First, the logic for translating a register bit to the return code of
exar_get_direction and exar_get_value were wrong. And second, there was
a flip regarding the register bank in exar_get_direction.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-exar.c