Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1233983
| From | Ludovic Desroches <ludovic.desroches@atmel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] pinctrl: at91-pio4: use irq_set_handler_locked |
| Date | 2015-09-28 11:50 +0200 |
| Message-ID | <qdDei-1XB-17@gated-at.bofh.it> (permalink) |
| References | <qdDei-1XB-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
---
drivers/pinctrl/pinctrl-at91-pio4.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c
index 6aff632..041df59 100644
--- a/drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/drivers/pinctrl/pinctrl-at91-pio4.c
@@ -167,23 +167,23 @@ static int atmel_gpio_irq_set_type(struct irq_data *d, unsigned type)
switch (type) {
case IRQ_TYPE_EDGE_RISING:
- __irq_set_handler_locked(d->irq, handle_edge_irq);
+ irq_set_handler_locked(d, handle_edge_irq);
reg |= ATMEL_PIO_CFGR_EVTSEL_RISING;
break;
case IRQ_TYPE_EDGE_FALLING:
- __irq_set_handler_locked(d->irq, handle_edge_irq);
+ irq_set_handler_locked(d, handle_edge_irq);
reg |= ATMEL_PIO_CFGR_EVTSEL_FALLING;
break;
case IRQ_TYPE_EDGE_BOTH:
- __irq_set_handler_locked(d->irq, handle_edge_irq);
+ irq_set_handler_locked(d, handle_edge_irq);
reg |= ATMEL_PIO_CFGR_EVTSEL_BOTH;
break;
case IRQ_TYPE_LEVEL_LOW:
- __irq_set_handler_locked(d->irq, handle_level_irq);
+ irq_set_handler_locked(d, handle_level_irq);
reg |= ATMEL_PIO_CFGR_EVTSEL_LOW;
break;
case IRQ_TYPE_LEVEL_HIGH:
- __irq_set_handler_locked(d->irq, handle_level_irq);
+ irq_set_handler_locked(d, handle_level_irq);
reg |= ATMEL_PIO_CFGR_EVTSEL_HIGH;
break;
case IRQ_TYPE_NONE:
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] Fixes for next Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-28 11:50 +0200
[PATCH 1/2] pinctrl: at91-pio4: use irq_set_handler_locked Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-28 11:50 +0200
Re: [PATCH 1/2] pinctrl: at91-pio4: use irq_set_handler_locked Linus Walleij <linus.walleij@linaro.org> - 2015-10-03 00:00 +0200
[PATCH 2/2] pinctrl: at91-pio4: irq argument as been removed from irq flow handlers Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-28 11:50 +0200
Re: [PATCH 2/2] pinctrl: at91-pio4: irq argument as been removed from irq flow handlers Linus Walleij <linus.walleij@linaro.org> - 2015-10-03 00:00 +0200
Re: [PATCH 0/2] Fixes for next Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-09-28 11:50 +0200
csiph-web