char: ipmi: use named initializers for acpi_device_id

Use a named 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.

While we are at it - unify the list terminator to have
a single space between the brackets and no trailing
comma.

Signed-off-by: Pawel Zalewski (The Capable Hub) <pzalewski@thegoodpenguin.co.uk>
Message-ID: <20260807-acpi-char-v1-3-742c450254dd@thegoodpenguin.co.uk>
Signed-off-by: Corey Minyard <corey@minyard.net>
This commit is contained in:
Pawel Zalewski (The Capable Hub)
2026-08-07 12:26:10 +01:00
committed by Corey Minyard
parent 18e633dd96
commit eee1ea58c8
3 changed files with 6 additions and 6 deletions

View File

@@ -361,8 +361,8 @@ MODULE_DEVICE_TABLE(i2c, ipmb_id);
#ifdef CONFIG_ACPI
static const struct acpi_device_id acpi_ipmb_id[] = {
{ "IPMB0001", 0 },
{},
{ .id = "IPMB0001" },
{ }
};
MODULE_DEVICE_TABLE(acpi, acpi_ipmb_id);
#endif

View File

@@ -387,8 +387,8 @@ static int acpi_ipmi_probe(struct platform_device *pdev)
}
static const struct acpi_device_id acpi_ipmi_match[] = {
{ "IPI0001", 0 },
{ },
{ .id = "IPI0001" },
{ }
};
MODULE_DEVICE_TABLE(acpi, acpi_ipmi_match);
#else

View File

@@ -2057,8 +2057,8 @@ static unsigned short *ssif_address_list(void)
#ifdef CONFIG_ACPI
static const struct acpi_device_id ssif_acpi_match[] = {
{ "IPI0001", 0 },
{ },
{ .id = "IPI0001" },
{ }
};
MODULE_DEVICE_TABLE(acpi, ssif_acpi_match);
#endif