gpio: Introduce struct gpio_irq_chip.first
authorThierry Reding <treding@nvidia.com>
Tue, 7 Nov 2017 18:15:58 +0000 (19:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 13:17:12 +0000 (14:17 +0100)
commit8302cf585288f75fd253f6b9a094d51ae371a3f3
treecacc2410c43290426bfe27da4d721e52282994ac
parent60ed54cae8dc0f2d41cafbd477bbed6deb716615
gpio: Introduce struct gpio_irq_chip.first

Some GPIO chips cannot support sparse IRQ numbering and therefore need
to manually allocate their interrupt descriptors statically. For these
cases, a driver can pass the first allocated IRQ via the struct
gpio_irq_chip's "first" field and thereby cause the IRQ domain to map
all IRQs during initialization.

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h