OSDN Git Service

gpio: mxs: Get rid of external API call
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Aug 2018 15:02:16 +0000 (17:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:14 +0000 (11:08 -0800)
commitd037b0394fb474642a11cb8cdc84c4624d57da98
tree6fdcf19a7c8a1de6641fc1ec0918fa11bc08cb07
parent085d695911bebb8eaa16acf57ad012a7c00cc6ff
gpio: mxs: Get rid of external API call

[ Upstream commit 833eacc7b5913da9896bacd30db7d490aa777868 ]

The MXS driver was calling back into the GPIO API from
its irqchip. This is not very elegant, as we are a driver,
let's just shortcut back into the gpio_chip .get() function
instead.

This is a tricky case since the .get() callback is not in
this file, instead assigned by bgpio_init(). Calling the
function direcly in the gpio_chip is however the lesser
evil.

Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mxs.c