From nobody Mon May 25 02:56:45 2026 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD2532765F5 for ; Tue, 19 May 2026 15:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779205252; cv=none; b=Bvj5eo2aqZ1vUD8EVf2kMplQMCjGZJ8hK0jhEKIXUyL1IN+CU/NnGeNvBOTIYghnPTs4xLOSB1YEUbt8Kpanh9jPLgcaVyDbHHDCuoht0zjLn/NPrzDeElErlyrlr59Ifxu4y+t9yhzSPh5LjgJ0xWVou3vQWHZhnknKdusPNB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779205252; c=relaxed/simple; bh=U7tQin3VDAvG7LiVpjo+/J5UEFaFKhlDK1ivz+wCwWI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Gr/BignILB5XMOC0S4MG3U53dkzA2xSub2BjFjVbRcptzcEpXuRpYDMwA0suP3d4ZwUI4AeOcfoTr5/kZNVB1VxYew19WsvrBKjM+nbNQpQtEPZeqmDmy3ZN0/thefpNGlYb/PfD348H+FKWX2ETYr6F1sj8X3lj6R8Bo4yW9cc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=kE3Dpohn; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b="kE3Dpohn" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-48984d29fe3so41452995e9.0 for ; Tue, 19 May 2026 08:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1779205248; x=1779810048; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jpv7/FIndg818vIl83cmQXaZd5aETp4Y6mW3mRgGkUY=; b=kE3DpohnRxGByF9WDI8P60HOd3t/76VPubF4oNLg/sHhhOnlEE3PWNUoWCzqtQsK6O UH1ppdyrIdwxsurF+lMjbZbylusIuhsKt1/61bsnS36j5HOp8+dDMguXlXZHpN+lH6Gx kCKrRrdHIN0+Zes3UDEeXYumvLiUBbvnRSprxYEjrfVe82IjjqtGYgRJISo2l3BC/shS bzWh1i1pnRfmb/S6MJ70aEVmGeYcx1YoIiQRlVdki5yZMbzofFKHiJSF9FbzEw65Hqja PDO3lAsCEclcCJwLiSsEpnlD1i7A88DEkXq+QJV4pE3wCp4g/JZH827sXWu0PRtp9Tj7 wrvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779205248; x=1779810048; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jpv7/FIndg818vIl83cmQXaZd5aETp4Y6mW3mRgGkUY=; b=LXA+HAfPGyvHDciV8QafSjspRFrZewKSetkXRSZIvBUPqJpZKS9mxhnf8AMzoxgOwo j+dcZh5CQyMKfjpSCbcL9eOg43fMEYSj7PKFGO1ys+w4VPmi7BG78vTKLWVsXLWL845s v0UhP0CH+Uz9aFyACV9T46U0IIYMATW6/iAIxkcJhSwyWXobEWNAPml/GzKM4apOPcKF oqd+fmJ7ZcSd0XnX7DCDrPr5mhVzOpLrgdWFXV9zFXXea5eWIrQLK5dk9i0AfW4ELVE2 S7Zh7uDjz7xmROCovGbTPhv2a1ESjwX0048XZn2mx4mg8J/T0P6pHHu8+wB4Dle8YTni RooA== X-Forwarded-Encrypted: i=1; AFNElJ8xZAQAOHXNsSieKMQgu02L341w43smdg+o9nYQXQcGyOvBovNgPB7njpA1y9/poMN2Hg6ZqZlt83rhMlM=@vger.kernel.org X-Gm-Message-State: AOJu0YwYs+SFMJR8WoFBBHwchir/g70qxSvye8/HN++5LC6iWSmtcQ0a H+dCyFef5tt5IgShe+YT/N+hp4veiHKbQkheQhMl8kcNjNvIIbgXIYCeU+WlKiXMJQE= X-Gm-Gg: Acq92OG5wyP+stXzEO1DYFOBRahWiKQ3JJy1h8nAnkW1R14NWGUh1anb4d+Irfptrtz ya3UlZjyXrPX50uu4jGKd4XwopIiq3b2qnxRmhpnuTbjBGAszbozwNuWWkOx5xwpdTj2hG2OXKd +RKbMadY9NEWUDaUyAU6PhzazmVletD+F8EM9BoFHNVkVevr1faeLx/1LqJRHYEqUennim7bBFD 1DE0fRmCh8zBwIFTdKrO3YPD4ot1yxsN+rCwTmrulSsN1C2GHtCq6TbcQLtDAKy158nilSA42NC m4pVr7P63NLtQ2HJZ65RWBWL4/n/Uxt7oxNcxQFCmexZrIe4qDbk2HvhQEK1y4VCsSBCbO8Jark wsKPSi9hhC8NFhp5exM6gPh1lbIkhqAwUGZnDdv4jU3u1FtW+ZWVDHmEtjIZ2r7KZ5KAN98b1MA 7wkDPoa/eWTUp2t1iFpnzpzdFCVplR8YXF2ThlRCsAfUbJOgvKW2EA3eLcHbEXIkoCZyv8u/UkP pwCztG64vbCrqQ7HDisxpQiiQ== X-Received: by 2002:a05:600c:a4f:b0:48f:e230:2a24 with SMTP id 5b1f17b1804b1-48fe66204e8mr293281235e9.31.1779205248022; Tue, 19 May 2026 08:40:48 -0700 (PDT) Received: from localhost (p200300f65f47db048a8dfcf61053817f.dip0.t-ipconnect.de. [2003:f6:5f47:db04:8a8d:fcf6:1053:817f]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48fe537c788sm317273835e9.12.2026.05.19.08.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 08:40:47 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] platform/x86: x86-android-tablets: Use named initializers for struct i2c_device_id Date: Tue, 19 May 2026 17:40:40 +0200 Message-ID: <20260519154040.1594878-2-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1920; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=U7tQin3VDAvG7LiVpjo+/J5UEFaFKhlDK1ivz+wCwWI=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqDIR4GYQGZYDQsoQ8VftEhQH+xgGh96WVbqZUx 7SAkX8ioguJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCagyEeAAKCRCPgPtYfRL+ TvmVCACjSRY/usBwxK/ZfluD/3LgQy2svB7V1+7XwJioxtuGEYkjIgyArkPABK3N/ahve6pDaZx AA0f3UI7SH/HiEzruhZP3IW3KYxNX6Gb+yr+9Z2EXcgh88qN5U7H0OEH6M5FpcMdjeYccNT+hLO OyimdcEV2eys2T9eXeCxkUKqdpd1e9AjPBt3EXUGJ+OwFzBXz+aL6IFY9FkRIJgV4+dzgQTPBvs Gj1RLRba0DtYcbRePhdhmzW4OcqQIabioMiEzPGmW4D3hy8knUPnTJ3lmgc0PKn77lz53OJDKCE 3Ncl5M3qvBne08s+Ao41X0u4i8Iy40VFf2/4oHHqTcCkq8eG X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable While being less compact, using named initializers allows to more easily see which members of the structs are assigned which value without having to lookup the declaration of the struct. And it's also more robust against changes to the struct definition. This patch doesn't modify the compiled array, only its representation in source form benefits. The former was confirmed with x86 and arm64 builds. Signed-off-by: Uwe Kleine-K=C3=B6nig (The Capable Hub) --- Hello, this patch is part of a bigger quest to use named initializers for mainly struct i2c_device_id::driver_data to be able to modify i2c_device_id. See e.g. https://lore.kernel.org/all/20260518111203.639603-2-u.kleine-koenig@baylibr= e.com/ for the details. This patch here isn't critical for this quest, as this driver doesn't make use of .driver_data, so apart from the better readability this is only about consistency with other subsystems. This is the only i2c driver under drivers/platform/x86, so this is the only patch needed to adapt the whole subsystem to the new style for initializing i2c_device_id arrays. Best regards Uwe drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c b/d= rivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c index ebbedfe5f4e8..67dba9aa51f6 100644 --- a/drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c +++ b/drivers/platform/x86/x86-android-tablets/vexia_atla10_ec.c @@ -242,7 +242,7 @@ static int atla10_ec_probe(struct i2c_client *client) } =20 static const struct i2c_device_id atla10_ec_id_table[] =3D { - { "vexia_atla10_ec" }, + { .name =3D "vexia_atla10_ec" }, { } }; MODULE_DEVICE_TABLE(i2c, atla10_ec_id_table); base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3