]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: stm32-adc: Use generic_handle_domain_irq()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 11 May 2022 11:06:09 +0000 (13:06 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Jun 2022 16:20:59 +0000 (17:20 +0100)
commite72f45bb700cf646ddc345ce7caf54bee6d63bc6
tree3c9df2bd4991345577a64eb28aaad2978371cf5f
parentfffd7124fd20c4c13c551ae8d646acb361194843
iio: adc: stm32-adc: Use generic_handle_domain_irq()

The call chain
generic_handle_irq(irq_find_mapping(domain, x));

could be replaced with
generic_handle_domain_irq(domain, x);

which looks up the struct irq_desc for the interrupt and handles it with
handle_irq_desc().
This is a slight optimisation given that the driver invokes only one
function and the struct irq_desc is used directly instead being looked
up via irq_to_desc().

Use generic_handle_domain_irq().

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/YnuYoQIzJoFIyEJY@linutronix.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc-core.c