mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
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>
This commit is contained in:
parent
7cb6362c63
commit
b4b5cd61a6
@ -85,10 +85,9 @@ static struct rzg2l_irqc_priv *irq_data_to_priv(struct irq_data *data)
|
||||
return data->domain->host_data;
|
||||
}
|
||||
|
||||
static void rzg2l_irq_eoi(struct irq_data *d)
|
||||
static void rzg2l_clear_irq_int(struct rzg2l_irqc_priv *priv, unsigned int hwirq)
|
||||
{
|
||||
unsigned int hw_irq = irqd_to_hwirq(d) - IRQC_IRQ_START;
|
||||
struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
|
||||
unsigned int hw_irq = hwirq - IRQC_IRQ_START;
|
||||
u32 bit = BIT(hw_irq);
|
||||
u32 iitsr, iscr;
|
||||
|
||||
@ -132,7 +131,7 @@ static void rzg2l_irqc_eoi(struct irq_data *d)
|
||||
|
||||
raw_spin_lock(&priv->lock);
|
||||
if (hw_irq >= IRQC_IRQ_START && hw_irq <= IRQC_IRQ_COUNT)
|
||||
rzg2l_irq_eoi(d);
|
||||
rzg2l_clear_irq_int(priv, hw_irq);
|
||||
else if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ)
|
||||
rzg2l_clear_tint_int(priv, hw_irq);
|
||||
raw_spin_unlock(&priv->lock);
|
||||
|
Loading…
Reference in New Issue
Block a user