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:
Kemeng Shi 2026-06-23 15:51:33 +08:00 committed by Thomas Gleixner
parent 13856e2221
commit c5a0cfa07c

View File

@ -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)