]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Disambiguate struct gpio_irq_chip.nested
authorThierry Reding <treding@nvidia.com>
Tue, 7 Nov 2017 18:15:57 +0000 (19:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Nov 2017 13:16:06 +0000 (14:16 +0100)
commit54fc8a59f56f8783451453477f9f968d4a3f2b2d
treebed33fde16dc09d122c7ad1a409199cf921fc2f6
parent11a7dc941d3905d028f7041cf9e0fdbbe8ebb896
gpio: Disambiguate struct gpio_irq_chip.nested

The nested field in struct gpio_irq_chip currently has two meanings. On
one hand it marks an IRQ chip as being nested (as opposed to chained),
while on the other hand it also means that an IRQ chip uses nested
thread handlers.

However, nested IRQ chips can already be identified by the fact that
they don't pass a parent handler (the driver would instead already have
installed a nested handler using request_irq()).

Therefore, the only use for the nested attribute is to inform gpiolib
that an IRQ chip uses nested thread handlers (as opposed to regular,
non-threaded handlers). To clarify its purpose, rename the field to
"threaded".

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