]> xenbits.xensource.com Git - people/aperard/linux.git/commitdiff
irqchip/renesas-rzg2l: Rename rzg2l_tint_eoi()
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 5 Mar 2024 18:39:19 +0000 (18:39 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 18 Mar 2024 11:20:01 +0000 (12:20 +0100)
Rename rzg2l_tint_eoi()->rzg2l_clear_tint_int() and simplify the code by
removing redundant priv and hw_irq local variables.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/irqchip/irq-renesas-rzg2l.c

index 5285bc817dd0c91a3a10b1e532b5c3a419f84f36..599e0aba5cc002bdf0eb506b3e79795c35dd6d3c 100644 (file)
@@ -109,11 +109,9 @@ static void rzg2l_irq_eoi(struct irq_data *d)
        }
 }
 
-static void rzg2l_tint_eoi(struct irq_data *d)
+static void rzg2l_clear_tint_int(struct rzg2l_irqc_priv *priv, unsigned int hwirq)
 {
-       unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_TINT_START;
-       struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
-       u32 bit = BIT(hw_irq);
+       u32 bit = BIT(hwirq - IRQC_TINT_START);
        u32 reg;
 
        reg = readl_relaxed(priv->base + TSCR);
@@ -136,7 +134,7 @@ static void rzg2l_irqc_eoi(struct irq_data *d)
        if (hw_irq >= IRQC_IRQ_START && hw_irq <= IRQC_IRQ_COUNT)
                rzg2l_irq_eoi(d);
        else if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ)
-               rzg2l_tint_eoi(d);
+               rzg2l_clear_tint_int(priv, hw_irq);
        raw_spin_unlock(&priv->lock);
        irq_chip_eoi_parent(d);
 }