greybus: gpio: add interrupt handling support
authorMatt Porter <mporter@linaro.org>
Tue, 17 Feb 2015 15:48:23 +0000 (10:48 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 18 Feb 2015 00:28:28 +0000 (16:28 -0800)
commit036aad9d0224f6f29c08abe102df709a27f68c17
treec46977215ef09d6e027bf3fe4927b8ac65108679
parent48d7077c007d27851952861d002d660b552b9888
greybus: gpio: add interrupt handling support

Adds gpio interrupt handling support using an irqchip/irqdomain
instantiation inside the GB GPIO driver. This implementation works
on older kernels such as 3.10 that do not have the gpiolib irqchip
helpers. Any line on a Greybus gpiochip may be configured as an
interrupt. Once configured, IRQ event messages received from a
module fire off the registered interrupt handler.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c