summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2014-03-25 10:40:18 +0100
committerLinus Walleij <linus.walleij@linaro.org>2014-03-26 10:31:21 +0100
commit1425052097b53de841e064dc190a9009480c208c (patch)
tree828f6a7bf6e5903149ea1d34ae9c7ba14a9a6fd8 /arch
parent8f18bcfcd2bc30cb9a5924a6b4af49c8388bc785 (diff)
downloadlinux-1425052097b53de841e064dc190a9009480c208c.tar.bz2
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions