Skip to content

Commit 8a4f44f

Browse files
geertuMarc Zyngier
authored andcommitted
irqchip/renesas-rzg2l: Convert to irq_data_get_irq_chip_data()
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
1 parent 8554cba commit 8a4f44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-renesas-rzg2l.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ static void rzg2l_irqc_irq_enable(struct irq_data *d)
130130
unsigned int hw_irq = irqd_to_hwirq(d);
131131

132132
if (hw_irq >= IRQC_TINT_START && hw_irq < IRQC_NUM_IRQ) {
133+
unsigned long tint = (uintptr_t)irq_data_get_irq_chip_data(d);
133134
struct rzg2l_irqc_priv *priv = irq_data_to_priv(d);
134-
unsigned long tint = (uintptr_t)d->chip_data;
135135
u32 offset = hw_irq - IRQC_TINT_START;
136136
u32 tssr_offset = TSSR_OFFSET(offset);
137137
u8 tssr_index = TSSR_INDEX(offset);

0 commit comments

Comments
 (0)