irqchip/gic(v3): Replace gic_irq() with irqd_to_hwirq()
authorDawei Li <dawei.li@shingroup.cn>
Mon, 22 Jan 2024 08:57:13 +0000 (16:57 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Jan 2024 15:02:48 +0000 (16:02 +0100)
commitd22083a5f09b2066728a91f3abb71284451247b1
tree3cf15a8f6e90da8fedf716c95329ea7dabc511b4
parenta0c446dc4d9365a24d81f2ee024bdde46e40365f
irqchip/gic(v3): Replace gic_irq() with irqd_to_hwirq()

GIC & GIC-v3 share same gic_irq() implementations, both of which serve
exact same purpose as irqd_to_hwirq(). irqd_to_hwirq() is a generic and
top level API of the interrupt subsystem, it's independent of any chip
implementation.

Replace gic_irq() with irqd_to_hwirq() and convert struct irq_data::hwirq
to irq_hw_number_t explicitly.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Dawei Li <dawei.li@shingroup.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240122085716.2999875-3-dawei.li@shingroup.cn
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-gic.c
include/linux/irq.h