From edb2b6d8ea88659679787231253e1acefca63f28 Mon Sep 17 00:00:00 2001 From: "Pawel Zalewski (The Capable Hub)" Date: Fri, 7 Aug 2026 13:38:33 +0100 Subject: [PATCH] x86/platform/olpc: 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 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) Signed-off-by: Borislav Petkov (AMD) Link: https://patch.msgid.link/20260807-acpi-platform-v1-1-1507662916ed@thegoodpenguin.co.uk --- arch/x86/platform/olpc/olpc-xo15-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index 75ed6ceb9df3..a13dd6b8bc6e 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c @@ -210,8 +210,8 @@ static int xo15_sci_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume); static const struct acpi_device_id xo15_sci_device_ids[] = { - {"XO15EC", 0}, - {"", 0}, + { .id = "XO15EC" }, + { } }; static struct platform_driver xo15_sci_drv = { -- knotmirror 0.0.1