gpiolib: override irq_enable/disable
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 8 Sep 2018 09:23:17 +0000 (11:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 10 Sep 2018 06:56:38 +0000 (08:56 +0200)
commit461c1a7d4733d1dfd5c47b040cf32a5e7eefbc6c
treebf21a1669e7b6c9e30cae1e427aeed2c4daa7d75
parent4e9439ddacea06f35acce4d374bf6bd0acf99bc8
gpiolib: override irq_enable/disable

When using the gpiolib irqchip helpers install irq_enable/disable
hooks for the irqchip to ensure that gpiolib knows when the irq
is enabled or disabled, allowing drivers to disable the irq and then
use it as an output pin, and later switch the direction to input and
re-enable the irq.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h