mailbox: 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: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
Pawel Zalewski 2026-10-15 13:58:28 +01:00 committed by Jassi Brar
parent 74f1cf02d9
commit 01a40ad5a9
2 changed files with 4 additions and 4 deletions

View File

@ -228,8 +228,8 @@ MODULE_DEVICE_TABLE(of, slimpro_of_match);
#ifdef CONFIG_ACPI
static const struct acpi_device_id slimpro_acpi_ids[] = {
{"APMC0D01", 0},
{}
{ .id = "APMC0D01" },
{ }
};
MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids);
#endif

View File

@ -1006,8 +1006,8 @@ static const struct of_device_id mpxy_mbox_of_match[] = {
MODULE_DEVICE_TABLE(of, mpxy_mbox_of_match);
static const struct acpi_device_id mpxy_mbox_acpi_match[] = {
{ "RSCV0005" },
{}
{ .id = "RSCV0005" },
{ }
};
MODULE_DEVICE_TABLE(acpi, mpxy_mbox_acpi_match);