]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpio: pcf857x: Switch to use gpiolib irqchip helpers
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 5 Feb 2015 15:49:08 +0000 (16:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 4 Mar 2015 12:48:34 +0000 (13:48 +0100)
commita39294bdf4b03803156c771968a6e2ba6ebb505b
treea3171961fce91b36d5ffb47e47c543ed3db71a24
parent6b516a1093006a39368dd11a5396be5bb00c99df
gpio: pcf857x: Switch to use gpiolib irqchip helpers

Switch the PCF857x GPIO driver to use the gpiolib irqchip helpers.
This driver uses a nested threaded interrupt, hence handle_nested_irq()
and gpiochip_set_chained_irqchip() must be used.

Note that this removes the checks added in commit 21fd3cd1874a2ac8
("gpio: pcf857x: call the gpio user handler iff gpio_to_irq is done"),
as the interrupt mappings are no longer created on-demand by the driver,
but by gpiochip_irqchip_add() during initialization.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-pcf857x.c