diff options
author | Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com> | 2018-02-23 03:31:45 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-03-02 02:40:31 -0500 |
commit | 430a2a5945501888665989ea71af15fd507a7058 (patch) | |
tree | 6d4b7eb1116079b0bb35752cd746c072451e8d42 /drivers/pinctrl/stm32 | |
parent | 928af2247785f7a1aec21e82a3ceba7c0c85f593 (diff) |
pinctrl: stm32: Optimizes and enhances stm32gpio irqchip
- removes unneeded irq_chip.irq_eoi callback
- adds irq_chip.irq_set_wake callback for possible
in the future GPIO wakeup
- adds irq_chip.irq_ack callback
Signed-off-by: Radoslaw Pietrzyk <radoslaw.pietrzyk@gmail.com>
Reviewed-by: Ludovic Barre <ludovic.barre@st.com>
Tested-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/stm32')
-rw-r--r-- | drivers/pinctrl/stm32/pinctrl-stm32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index 617df163067f..6cbcff42ba47 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c | |||
@@ -268,10 +268,11 @@ static void stm32_gpio_irq_release_resources(struct irq_data *irq_data) | |||
268 | 268 | ||
269 | static struct irq_chip stm32_gpio_irq_chip = { | 269 | static struct irq_chip stm32_gpio_irq_chip = { |
270 | .name = "stm32gpio", | 270 | .name = "stm32gpio", |
271 | .irq_eoi = irq_chip_eoi_parent, | 271 | .irq_ack = irq_chip_ack_parent, |
272 | .irq_mask = irq_chip_mask_parent, | 272 | .irq_mask = irq_chip_mask_parent, |
273 | .irq_unmask = irq_chip_unmask_parent, | 273 | .irq_unmask = irq_chip_unmask_parent, |
274 | .irq_set_type = irq_chip_set_type_parent, | 274 | .irq_set_type = irq_chip_set_type_parent, |
275 | .irq_set_wake = irq_chip_set_wake_parent, | ||
275 | .irq_request_resources = stm32_gpio_irq_request_resources, | 276 | .irq_request_resources = stm32_gpio_irq_request_resources, |
276 | .irq_release_resources = stm32_gpio_irq_release_resources, | 277 | .irq_release_resources = stm32_gpio_irq_release_resources, |
277 | }; | 278 | }; |