]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Add IRQ support to ACCES 104-IDIO-16 driver
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Tue, 3 Nov 2015 12:54:23 +0000 (07:54 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Nov 2015 08:24:36 +0000 (09:24 +0100)
commit1d2b3a7ec48f6f79b6d2b3c68aa08b017bfe2b6e
tree6282546b1f632e24136653752af42f75833c607a
parenta480e211b3287262fd2e8cee52677b3855ba8dc8
gpio: Add IRQ support to ACCES 104-IDIO-16 driver

The ACCES 104-IDIO-16 series offers Change-of-State detection interrupt
functionality; if Change-of-State detection is enabled, an interrupt is
fired off if any input line changes state (i.e. goes from low to high,
or from high to low). This patch adds support to handle these interrupts
and allows the user to mask which GPIO lines are affected. The interrupt
line number for the device may be set via the idio_16_irq module
parameter.

Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-104-idio-16.c