projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f1803
)
pinctrl: pinctrl-at91-pio4: Set irq handler and data in one go
author
Martin Kaiser
<martin@kaiser.cx>
Sun, 8 Nov 2020 18:01:44 +0000
(19:01 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 11 Nov 2020 14:47:07 +0000
(15:47 +0100)
Replace the two separate calls for setting the irq handler and data with a
single irq_set_chained_handler_and_data() call.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link:
https://lore.kernel.org/r/20201108180144.28594-1-martin@kaiser.cx
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-at91-pio4.c
b/drivers/pinctrl/pinctrl-at91-pio4.c
index
578b387
..
157fea8
100644
(file)
--- a/
drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/
drivers/pinctrl/pinctrl-at91-pio4.c
@@
-1127,8
+1127,8
@@
static int atmel_pinctrl_probe(struct platform_device *pdev)
return -EINVAL;
}
atmel_pioctrl->irqs[i] = res->start;
- irq_set_chained_handler
(res->start, atmel_gpio_irq_handler);
-
irq_set_handler_data(res->start
, atmel_pioctrl);
+ irq_set_chained_handler
_and_data(res->start,
+
atmel_gpio_irq_handler
, atmel_pioctrl);
dev_dbg(dev, "bank %i: irq=%pr\n", i, res);
}