aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-11-07 19:15:57 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-11-08 14:16:06 +0100
commit60ed54cae8dc0f2d41cafbd477bbed6deb716615 (patch)
treebed33fde16dc09d122c7ad1a409199cf921fc2f6 /include/linux/gpio
parentgpio: Add Tegra186 support (diff)
downloadlinux-dev-60ed54cae8dc0f2d41cafbd477bbed6deb716615.tar.xz
linux-dev-60ed54cae8dc0f2d41cafbd477bbed6deb716615.zip
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>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index bbe5c647f29d..0a3fdd4d9d8d 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -108,11 +108,11 @@ struct gpio_irq_chip {
unsigned int *map;
/**
- * @nested:
+ * @threaded:
*
- * True if set the interrupt handling is nested.
+ * True if set the interrupt handling uses nested threads.
*/
- bool nested;
+ bool threaded;
/**
* @need_valid_mask:
@@ -385,7 +385,7 @@ int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
unsigned int first_irq,
irq_flow_handler_t handler,
unsigned int type,
- bool nested,
+ bool threaded,
struct lock_class_key *lock_key);
#ifdef CONFIG_LOCKDEP