]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: dwapb: Call directly into the gpiochip to read value
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 8 Feb 2018 17:00:05 +0000 (18:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 Feb 2018 14:31:19 +0000 (15:31 +0100)
commit62c16234bbfd2758ec2fdd1a716d13418c58044d
treeccaef1c7af27cf7380e935f2af06d562f717703b
parent89f99feb9c73d823d15f40599d998eb11a228465
gpio: dwapb: Call directly into the gpiochip to read value

We were going out through the (legacy) gpio API to read the value
of a line to set up polarity inversion. This is abusive. Do something
less abusive by looking up the actual struct gpio_chip *
instance and calling .get() directly on it.

Acked-by: Hoan Tran <hotran@apm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c