]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Sat, 10 Nov 2018 15:48:34 +0000 (07:48 -0800)
commit43607eb9f70823072e1bfc27f84ed81551ac2adb
treea4675dd89d12b466cce61a82adfb3d2321645d3c
parent6eb5633da44ef52e37c27e25400d427b9774ae6e
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