* [PATCH] gpiolib: clear irq handler and data in one go
@ 2017-10-18 16:32 Martin Kaiser
2017-10-19 14:32 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Martin Kaiser @ 2017-10-18 16:32 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Martin Kaiser
Replace the two separate calls for clearing the irqchip's chained handler
and its data with a single irq_set_chained_handler_and_data() call.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/gpio/gpiolib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index eb80dac..809654a 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1718,8 +1718,8 @@ static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip)
acpi_gpiochip_free_interrupts(gpiochip);
if (gpiochip->irq_chained_parent) {
- irq_set_chained_handler(gpiochip->irq_chained_parent, NULL);
- irq_set_handler_data(gpiochip->irq_chained_parent, NULL);
+ irq_set_chained_handler_and_data(
+ gpiochip->irq_chained_parent, NULL, NULL);
}
/* Remove all IRQ mappings and delete the domain */
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpiolib: clear irq handler and data in one go
2017-10-18 16:32 [PATCH] gpiolib: clear irq handler and data in one go Martin Kaiser
@ 2017-10-19 14:32 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-10-19 14:32 UTC (permalink / raw)
To: Martin Kaiser; +Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
On Wed, Oct 18, 2017 at 6:32 PM, Martin Kaiser <martin@kaiser.cx> wrote:
> Replace the two separate calls for clearing the irqchip's chained handler
> and its data with a single irq_set_chained_handler_and_data() call.
>
> Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-19 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-18 16:32 [PATCH] gpiolib: clear irq handler and data in one go Martin Kaiser
2017-10-19 14:32 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).