aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio/driver.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2018-01-09 20:58:46 -0500
committerLinus Walleij <linus.walleij@linaro.org>2018-01-10 08:21:25 -0500
commit64ff2c8e468ceff3cd678a4fa2edfc77dadc6bfe (patch)
tree0f055ee55152208e0f1614ff4acc01de3188ad2e /include/linux/gpio/driver.h
parent9961dbcd228e868224f5f725dfae69de739855dc (diff)
gpiolib: Export gpiochip_irqchip_irq_valid() to drivers
Some pinctrl drivers can use the gpiochip irq valid information to figure out if certain gpios are exposed to the kernel for usage or not. Expose this API so we can use it in the pinmux_ops::request ops. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio/driver.h')
-rw-r--r--include/linux/gpio/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index 55e672592fa9..b6a05dd0d10a 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -431,6 +431,9 @@ int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
431 bool threaded, 431 bool threaded,
432 struct lock_class_key *lock_key); 432 struct lock_class_key *lock_key);
433 433
434bool gpiochip_irqchip_irq_valid(const struct gpio_chip *gpiochip,
435 unsigned int offset);
436
434#ifdef CONFIG_LOCKDEP 437#ifdef CONFIG_LOCKDEP
435 438
436/* 439/*