gpio: handle also nested irqchips in the chained handler set-up
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Sep 2014 12:19:52 +0000 (14:19 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Sep 2014 12:39:08 +0000 (14:39 +0200)
commit3f97d5fcf99cb87f590ffe1d9422b2a26a8ef3ed
treefd68ce986e6042edebb64bf8ad51aa7f222503f7
parent83141a771975f4e54402ab05e5cbbc3c56f45bdd
gpio: handle also nested irqchips in the chained handler set-up

To unify how we connect cascaded IRQ chips to parent IRQs, if
NULL us passed as handler to the gpiochip_set_chained_irqchip()
function, assume the chips is nested rather than chained, and
we still get the parent set up correctly by way of this function
call.

Alter the drivers for tc3589x and stmpe to use this to set up
their chained handlers as a demonstration of the usage.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/gpio/driver.txt
drivers/gpio/gpio-stmpe.c
drivers/gpio/gpio-tc3589x.c
drivers/gpio/gpiolib.c