]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
gpio: arizona: Correct check whether the pin is an input
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 19 Apr 2017 09:30:44 +0000 (10:30 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Apr 2017 14:22:14 +0000 (16:22 +0200)
commit64c6a71126fdeb2d60e193b93e24ea5ffa9c40ba
tree2ee7c5f669148f53b9f2ea82a005db3cc2cb88ce
parent42fcb203e3a8682c41b6a22d2b3fd1457b407fb9
gpio: arizona: Correct check whether the pin is an input

The logic to check if the pin is an input or output whilst testing if we
need to read the register value from the hardware or not is currently
inverted. Remove the erroneous not from the if statement.

Fixes: 11598d174050 ("gpio: arizona: Correct handling for reading input GPIOs")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-arizona.c