]> git.itanic.dy.fi Git - linux-stable/commitdiff
irqchip/renesas-rzg2l: Convert to irq_data_get_irq_chip_data()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 27 Sep 2023 12:57:32 +0000 (14:57 +0200)
committerMarc Zyngier <maz@kernel.org>
Sat, 7 Oct 2023 11:47:13 +0000 (12:47 +0100)
Use the existing irq_data_get_irq_chip_data() helper instead of
open-coding the same operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/8e47cc6400e5a82c854c855948d2665a3a3197e3.1695819391.git.geert+renesas@glider.be
drivers/irqchip/irq-renesas-rzg2l.c

index 2cee5477be6b625190f9acc92fb466c84c0590ea..96f4e322ed6b727cb9a4d732b28ed309e21e04f6 100644 (file)
@@ -130,8 +130,8 @@ static void rzg2l_irqc_irq_enable(struct irq_data *d)
        unsigned int hw_irq = irqd_to_hwirq(d);
 
        if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ) {
+               unsigned long tint = (uintptr_t)irq_data_get_irq_chip_data(d);
                struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
-               unsigned long tint = (uintptr_t)d->chip_data;
                u32 offset = hw_irq - IRQC_TINT_START;
                u32 tssr_offset = TSSR_OFFSET(offset);
                u8 tssr_index = TSSR_INDEX(offset);