summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2020-05-03 18:45:49 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-05-12 15:05:02 +0200
commit9a0f1341df7d555eb50a826d1f6f4191a78eabea (patch)
tree13705ccecefe8b450f0eb9e6305c9ffeb4b49102 /drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c
parent8068071c09e546e6c13e728da0531b56917802e7 (diff)
downloadlinux-9a0f1341df7d555eb50a826d1f6f4191a78eabea.tar.bz2
pinctrl: ingenic: Add irq_{request,release}_resources callbacks
These are called when a GPIO is to be used as IRQ. Without these custom callbacks, when an interrupt is requested directly and not through gpiod_to_irq(), the request fails because the GPIO is not necesarily in input mode. These callbacks simply enforce that the requested GPIO is in input mode. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20200503164549.163884-1-paul@crapouillou.net Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c')
0 files changed, 0 insertions, 0 deletions