]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca53e6375417cdf30b27c29f44bcd272e9ec4cff
treecacc2410c43290426bfe27da4d721e52282994ac
parent54fc8a59f56f8783451453477f9f968d4a3f2b2d
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