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>
diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index 946ea77..1f87a84 100644 --- a/drivers/mailbox/mailbox-xgene-slimpro.c +++ b/drivers/mailbox/mailbox-xgene-slimpro.c
@@ -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
diff --git a/drivers/mailbox/riscv-sbi-mpxy-mbox.c b/drivers/mailbox/riscv-sbi-mpxy-mbox.c index ea69c6b6..4ebce35 100644 --- a/drivers/mailbox/riscv-sbi-mpxy-mbox.c +++ b/drivers/mailbox/riscv-sbi-mpxy-mbox.c
@@ -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);