gpiolib-acpi: Add ACPI5 event model support to gpio.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 28 Jan 2013 14:23:10 +0000 (16:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 29 Jan 2013 10:47:06 +0000 (11:47 +0100)
commit0d1c28a449c6c23a126e3a08ee30914609aac227
tree30995ef0e73b540d0eeb3fb0321e7baa8bcb01cf
parentb42748c970d1865685749960cb23f08e259a9f86
gpiolib-acpi: Add ACPI5 event model support to gpio.

Add ability to handle ACPI events signalled by GPIO interrupts.

ACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are
handled by ACPI event methods which need to be called from the GPIO
controller's interrupt handler. acpi_gpio_request_interrupt() finds out which
gpio pins have acpi event methods and assigns interrupt handlers that calls
the acpi event methods for those pins.

Partially based on work by Rui Zhang <rui.zhang@intel.com>

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c
include/linux/acpi_gpio.h