mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
genirq/manage: Use irqd_get_parent_data() helper in __irq_get_irqchip_state()
Replace the open coded version of it. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260623075134.4432-3-shikemeng@huaweicloud.com
This commit is contained in:
parent
13856e2221
commit
c5a0cfa07c
|
|
@ -2703,11 +2703,7 @@ static int __irq_get_irqchip_state(struct irq_data *data, enum irqchip_irq_state
|
|||
return -ENODEV;
|
||||
if (chip->irq_get_irqchip_state)
|
||||
break;
|
||||
#ifdef CONFIG_IRQ_DOMAIN_HIERARCHY
|
||||
data = data->parent_data;
|
||||
#else
|
||||
data = NULL;
|
||||
#endif
|
||||
data = irqd_get_parent_data(data);
|
||||
} while (data);
|
||||
|
||||
if (data)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user