]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6776c4bafa4f60038c4860684529c161a25e743
treebf21a1669e7b6c9e30cae1e427aeed2c4daa7d75
parent25db1288514a878c9893f79fe63711e37a4f4e02
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