mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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:
parent
64212d6319
commit
5919f587ea
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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" },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user