]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uio: uio_pdrv_genirq: Make use of irq_get_trigger_type()
authorVasileios Amoiridis <vassilisamir@gmail.com>
Thu, 12 Sep 2024 23:59:25 +0000 (01:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2024 15:16:28 +0000 (17:16 +0200)
commitdcf6e7cf531ab8ea4a42abb30906ef414043b655
tree4ee3eab505d7fb32dc083fb3d3e78f5f5cbe61c8
parent2d23bc3c14fb6b08232f267bf15cf40cfce783b5
uio: uio_pdrv_genirq: Make use of irq_get_trigger_type()

Convert the following case:

struct irq_data *irq_data = irq_get_irq_data(irq);

if (irq_data && irqd_get_trigger_type(irq_data) ... ) {
...
}

to the simpler:

if (irq_get_trigger_type(irq) ... ) {
...
}

by using the irq_get_trigger_type() function.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240912235925.54465-3-vassilisamir@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pdrv_genirq.c