summaryrefslogtreecommitdiff
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-11-05 13:00:40 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-11-05 13:00:40 +0300
commitc196924277ea82200d4c4fd9537c71390b96f247 (patch)
tree2f76c094c3adee9c041e9e89a9431c5c7ef08e85 /include/linux/gpio
parent6a41b6c5fc20abced88fa0eed42ae5e5cb70b280 (diff)
parenta99d8080aaf358d5d23581244e5da23b35e340b9 (diff)
downloadlinux-c196924277ea82200d4c4fd9537c71390b96f247.tar.xz
Merge tag 'v5.4-rc6' into devel
Linux 5.4-rc6
Diffstat (limited to 'include/linux/gpio')
-rw-r--r--include/linux/gpio/driver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index f8245d67f070..5dd9c982e2cb 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -202,6 +202,14 @@ struct gpio_irq_chip {
bool threaded;
/**
+ * @init_hw: optional routine to initialize hardware before
+ * an IRQ chip will be added. This is quite useful when
+ * a particular driver wants to clear IRQ related registers
+ * in order to avoid undesired events.
+ */
+ int (*init_hw)(struct gpio_chip *chip);
+
+ /**
* @init_valid_mask: optional routine to initialize @valid_mask, to be
* used if not all GPIO lines are valid interrupts. Sometimes some
* lines just cannot fire interrupts, and this routine, when defined,