]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: add IRQ chip helpers in gpiolib
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Mar 2014 09:40:18 +0000 (10:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 26 Mar 2014 09:31:21 +0000 (10:31 +0100)
commitadb8c593f807f205a202f0b933e4923428a2c698
tree828f6a7bf6e5903149ea1d34ae9c7ba14a9a6fd8
parent95a5af0f10fcfa14caaaee5d8d292273f403f488
gpio: add IRQ chip helpers in gpiolib

This provides a function gpiochip_irqchip_add() to set
up an irqchip for a GPIO controller, and a function
gpiochip_set_chained_irqchip() to chain it to a parent
irqchip.

Most GPIOs are of the type where a number of lines form
a cascaded interrupt controller chained onto
the primary system interrupt controller (or further down the
chain) so let's add this helper and factor the code to
request the lines to be used as IRQs, the .to_irq() function
and the irqdomain into the core as well.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h