aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio/driver.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-11-07 13:15:57 -0500
committerLinus Walleij <linus.walleij@linaro.org>2017-11-08 08:16:06 -0500
commit60ed54cae8dc0f2d41cafbd477bbed6deb716615 (patch)
treebed33fde16dc09d122c7ad1a409199cf921fc2f6 /include/linux/gpio/driver.h
parent5b2b135a87fcfb2b27c3c192fd7c3b053f0c5fa2 (diff)
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/driver.h')
-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 {
108 unsigned int *map; 108 unsigned int *map;
109 109
110 /** 110 /**
111 * @nested: 111 * @threaded:
112 * 112 *
113 * True if set the interrupt handling is nested. 113 * True if set the interrupt handling uses nested threads.
114 */ 114 */
115 bool nested; 115 bool threaded;
116 116
117 /** 117 /**
118 * @need_valid_mask: 118 * @need_valid_mask:
@@ -385,7 +385,7 @@ int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
385 unsigned int first_irq, 385 unsigned int first_irq,
386 irq_flow_handler_t handler, 386 irq_flow_handler_t handler,
387 unsigned int type, 387 unsigned int type,
388 bool nested, 388 bool threaded,
389 struct lock_class_key *lock_key); 389 struct lock_class_key *lock_key);
390 390
391#ifdef CONFIG_LOCKDEP 391#ifdef CONFIG_LOCKDEP