Skip to content

Commit b4b5cd6

Browse files
bijudasKAGA-KOKO
authored andcommitted
irqchip/renesas-rzg2l: Rename rzg2l_irq_eoi()
Rename rzg2l_irq_eoi()->rzg2l_clear_irq_int() and simplify the code by removing redundant priv local variable. Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 7cb6362 commit b4b5cd6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/irqchip/irq-renesas-rzg2l.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ static struct rzg2l_irqc_priv *irq_data_to_priv(struct irq_data *data)
8585
return data->domain->host_data;
8686
}
8787

88-
static void rzg2l_irq_eoi(struct irq_data *d)
88+
static void rzg2l_clear_irq_int(struct rzg2l_irqc_priv *priv, unsigned int hwirq)
8989
{
90-
unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_IRQ_START;
91-
struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
90+
unsigned int hw_irq = hwirq - IRQC_IRQ_START;
9291
u32 bit = BIT(hw_irq);
9392
u32 iitsr, iscr;
9493

@@ -132,7 +131,7 @@ static void rzg2l_irqc_eoi(struct irq_data *d)
132131

133132
raw_spin_lock(&priv->lock);
134133
if (hw_irq >= IRQC_IRQ_START && hw_irq <= IRQC_IRQ_COUNT)
135-
rzg2l_irq_eoi(d);
134+
rzg2l_clear_irq_int(priv, hw_irq);
136135
else if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ)
137136
rzg2l_clear_tint_int(priv, hw_irq);
138137
raw_spin_unlock(&priv->lock);

0 commit comments

Comments
 (0)