]> git.karo-electronics.de Git - linux-beck.git/commit
gpio / ACPI: Move event handling registration to gpiolib irqchip helpers
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 25 Jul 2014 06:54:48 +0000 (09:54 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 28 Jul 2014 10:23:57 +0000 (12:23 +0200)
commitafa82fab5e136fc64eaf26db9b00c661286e1762
tree551a6268bc2fc528e2420dfd41db45e1f83d92f0
parent7f87210eff7a26a0215b493e9dd7322b16d8dc72
gpio / ACPI: Move event handling registration to gpiolib irqchip helpers

Since now we have irqchip helpers that the GPIO chip drivers are supposed
to use if possible, we can move the registration of ACPI events to happen
in these helpers. This seems to be more natural place and might encourage
GPIO chip driver writers to take advantage of the irqchip helpers.

We make the functions available to GPIO chip drivers via private gpiolib.h,
just in case generic irqchip helpers are not suitable.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h