gpio: mxs: read pin level directly instead of using .get
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Dec 2018 08:47:57 +0000 (09:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Dec 2018 10:29:57 +0000 (11:29 +0100)
commitf0df462f3ae1d10131f8ff7daa016ce1a8686727
tree4f96aa4bda17a100659cd6eca661fc4c8d6a7ff8
parent533918b6f6ae7566b703adf0346dd15f2a60fe77
gpio: mxs: read pin level directly instead of using .get

Calling readl directly instead of going through another function that
results in the same result to remove some overhead. I didn't try to
measure the performance gain, but IMHO there is little benefit from
abstracting a GPIO register access in the GPIO driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxs.c