summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorVasileios Amoiridis <vassilisamir@gmail.com>2024-09-13 00:16:04 +0200
committerRob Herring (Arm) <robh@kernel.org>2024-09-13 14:52:28 -0500
commitba3c92ba09fecf9286f54ef54a03638711e11da8 (patch)
treec15933321912ac0dbeaee5570e122bdf3144e9ae /drivers/of
parent5f949556ed38bfa3d89dfe46a18accf52b04fa42 (diff)
downloadlinux-stable-ba3c92ba09fecf9286f54ef54a03638711e11da8.tar.gz
linux-stable-ba3c92ba09fecf9286f54ef54a03638711e11da8.tar.bz2
linux-stable-ba3c92ba09fecf9286f54ef54a03638711e11da8.zip
of/irq: Make use of irq_get_trigger_type()
Convert irqd_get_trigger_type(irq_get_irq_data(irq)) cases to the more simple irq_get_trigger_type(irq). Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Vasileios Amoiridis <vassilisamir@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20240912221605.27089-2-vassilisamir@gmail.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index 36351ad6115e..5d27b20634d3 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -430,7 +430,7 @@ int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
&name);
r->start = r->end = irq;
- r->flags = IORESOURCE_IRQ | irqd_get_trigger_type(irq_get_irq_data(irq));
+ r->flags = IORESOURCE_IRQ | irq_get_trigger_type(irq);
r->name = name ? name : of_node_full_name(dev);
}