Skip to content

Commit 7cb6362

Browse files
bijudasKAGA-KOKO
authored andcommitted
irqchip/renesas-rzg2l: Rename rzg2l_tint_eoi()
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>
1 parent 9eec61d commit 7cb6362

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/irqchip/irq-renesas-rzg2l.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ static void rzg2l_irq_eoi(struct irq_data *d)
109109
}
110110
}
111111

112-
static void rzg2l_tint_eoi(struct irq_data *d)
112+
static void rzg2l_clear_tint_int(struct rzg2l_irqc_priv *priv, unsigned int hwirq)
113113
{
114-
unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_TINT_START;
115-
struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
116-
u32 bit = BIT(hw_irq);
114+
u32 bit = BIT(hwirq - IRQC_TINT_START);
117115
u32 reg;
118116

119117
reg = readl_relaxed(priv->base + TSCR);
@@ -136,7 +134,7 @@ static void rzg2l_irqc_eoi(struct irq_data *d)
136134
if (hw_irq >= IRQC_IRQ_START && hw_irq <= IRQC_IRQ_COUNT)
137135
rzg2l_irq_eoi(d);
138136
else if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ)
139-
rzg2l_tint_eoi(d);
137+
rzg2l_clear_tint_int(priv, hw_irq);
140138
raw_spin_unlock(&priv->lock);
141139
irq_chip_eoi_parent(d);
142140
}

0 commit comments

Comments
 (0)