From b37c93bc1cfd0f5fb898b7943bd0c1797341a41d Mon Sep 17 00:00:00 2001 From: Pawel Zalewski Date: Wed, 16 Sep 2026 16:27:55 +0100 Subject: [PATCH] dmaengine: loongson: 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. Unify the list terminator to have a single space between the brackets and no trailing comma. Signed-off-by: Pawel Zalewski Reviewed-by: Binbin Zhou Reviewed-by: Andy Shevchenko Reviewed-by: Frank Li Link: https://patch.msgid.link/20260916-acpi-dma-v3-2-0dac05654967@thegoodpenguin.co.uk Signed-off-by: Vinod Koul --- drivers/dma/loongson/loongson2-apb-cmc-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c index e440430bed80..2037120b23ca 100644 --- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c +++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c @@ -706,8 +706,8 @@ static const struct of_device_id loongson2_cmc_dma_of_match[] = { MODULE_DEVICE_TABLE(of, loongson2_cmc_dma_of_match); static const struct acpi_device_id loongson2_cmc_dma_acpi_match[] = { - { "LOON0014", .driver_data = (kernel_ulong_t)&ls2k3000_cmc_dma_config }, - { /* sentinel */ } + { .id = "LOON0014", .driver_data = (kernel_ulong_t)&ls2k3000_cmc_dma_config }, + { } }; MODULE_DEVICE_TABLE(acpi, loongson2_cmc_dma_acpi_match);