From 01a40ad5a9687ea5a837857d4b21ddd764be7aa3 Mon Sep 17 00:00:00 2001 From: Pawel Zalewski Date: Thu, 15 Oct 2026 13:58:28 +0100 Subject: [PATCH] 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 Signed-off-by: Jassi Brar --- drivers/mailbox/mailbox-xgene-slimpro.c | 4 ++-- drivers/mailbox/riscv-sbi-mpxy-mbox.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index 946ea773ec33..1f87a84e5995 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 ea69c6b6b4f9..4ebce35a8b6c 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);