irqchip: Use named initializers for acpi_device_id

Use a designated initializer for the acpi_device_id fields which makes the
code more readable and consistent with how lists are initialized in the
rest of the kernel code base. Also drop explicitly setting fields to 0
where it is redundant.

Unify the list terminator to have a single space between the brackets and
no trailing comma.

Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20261014-acpi-irqchip-v1-1-821917378de3@thegoodpenguin.co.uk
This commit is contained in:
Pawel Zalewski 2026-10-14 12:00:43 +01:00 committed by Thomas Gleixner
parent 64212d6319
commit 5919f587ea
7 changed files with 13 additions and 13 deletions

View File

@ -282,8 +282,8 @@ MODULE_DEVICE_TABLE(of, gicv5_iwb_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id iwb_acpi_match[] = {
{ "ARMH0003", 0 },
{}
{ .id = "ARMH0003" },
{ }
};
#endif

View File

@ -259,8 +259,8 @@ static int mbigen_of_create_domain(struct platform_device *pdev,
#ifdef CONFIG_ACPI
static const struct acpi_device_id mbigen_acpi_match[] = {
{ "HISI0152", 0 },
{}
{ .id = "HISI0152" },
{ }
};
MODULE_DEVICE_TABLE(acpi, mbigen_acpi_match);

View File

@ -305,8 +305,8 @@ static void aplic_init_hw_irqs(struct aplic_priv *priv)
#ifdef CONFIG_ACPI
static const struct acpi_device_id aplic_acpi_match[] = {
{ "RSCV0002", 0 },
{}
{ .id = "RSCV0002" },
{ }
};
MODULE_DEVICE_TABLE(acpi, aplic_acpi_match);

View File

@ -313,8 +313,8 @@ static const struct of_device_id rpmi_sysmsi_match[] = {
};
static const struct acpi_device_id acpi_rpmi_sysmsi_match[] = {
{ "RSCV0006" },
{}
{ .id = "RSCV0006" },
{ }
};
MODULE_DEVICE_TABLE(acpi, acpi_rpmi_sysmsi_match);

View File

@ -538,8 +538,8 @@ static const struct of_device_id plic_match[] = {
#ifdef CONFIG_ACPI
static const struct acpi_device_id plic_acpi_match[] = {
{ "RSCV0001", 0 },
{}
{ .id = "RSCV0001" },
{ }
};
MODULE_DEVICE_TABLE(acpi, plic_acpi_match);

View File

@ -307,8 +307,8 @@ static int exiu_acpi_probe(struct platform_device *pdev)
}
static const struct acpi_device_id exiu_acpi_ids[] = {
{ "SCX0008" },
{ /* sentinel */ }
{ .id = "SCX0008" },
{ }
};
MODULE_DEVICE_TABLE(acpi, exiu_acpi_ids);

View File

@ -262,7 +262,7 @@ static int combiner_probe(struct platform_device *pdev)
}
static const struct acpi_device_id qcom_irq_combiner_ids[] = {
{ "QCOM80B1", },
{ .id = "QCOM80B1" },
{ }
};