From 3375b70058dbdbc26121a1b38831430b53be7af3 Mon Sep 17 00:00:00 2001 From: Oleksii Kurochko Date: Wed, 1 Jul 2026 14:12:51 +0200 Subject: [PATCH] xen/riscv: rename enum intc_version to intc_variant Rename the enum to intc_variant and the structure member from hw_version to hw_variant to better reflect that these values select between different controller variants, not versions of the same one. Requested-by: Jan Beulich Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- xen/arch/riscv/aplic.c | 2 +- xen/arch/riscv/include/asm/intc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/riscv/aplic.c b/xen/arch/riscv/aplic.c index 739e8dab34..6a1255c5f4 100644 --- a/xen/arch/riscv/aplic.c +++ b/xen/arch/riscv/aplic.c @@ -35,7 +35,7 @@ static struct aplic_priv aplic = { }; static struct intc_info __ro_after_init aplic_info = { - .hw_version = INTC_APLIC, + .hw_variant = INTC_APLIC, }; static void __init aplic_init_hw_interrupts(void) diff --git a/xen/arch/riscv/include/asm/intc.h b/xen/arch/riscv/include/asm/intc.h index ecdc8a5e65..675f703ec9 100644 --- a/xen/arch/riscv/include/asm/intc.h +++ b/xen/arch/riscv/include/asm/intc.h @@ -10,7 +10,7 @@ struct dt_device_node; -enum intc_version { +enum intc_variant { INTC_APLIC, }; @@ -18,7 +18,7 @@ struct cpu_user_regs; struct irq_desc; struct intc_info { - enum intc_version hw_version; + enum intc_variant hw_variant; const struct dt_device_node *node; /* number of irqs */