From nobody Mon May 25 01:59:26 2026 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 5E2A432FA18 for ; Tue, 19 May 2026 15:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779204009; cv=none; b=Os4NMGOMSGqnZkHRvPxo7qE22jzIKWxX6fe5Tv1RfKVGo3FTYZNX+IOjOpWs0suiPD4CszvOuciT6ycnKuBw5z9e0Bg05XVzgMO3W+P2XWge1h7PAeAPshiy7aj7PcBNCgz/if1p0vfYKpZM7zwukIi0QY9Ilhe1a1X6IopLg/g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779204009; c=relaxed/simple; bh=G6h3h+AQvii7Rd03uciCOrbEpPKggEJtO0biGxitxj0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ch59wfDPUQVekSujppQURFSNemjA5L/XY4DjvXQdehA97NviT7CCGBZT8lUcf5FYmuwJ6k8vIegdlF93xHY36NajPGaeH4u4hezwjYGKu+99lJ1DSFaNE8845ADlQV2qIgkT4NkgqUb+aujShXzgvlOs+kvPAnavQ8o0AXz/l4k= 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=IUCRSrfv; arc=none smtp.client-ip=209.85.128.43 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="IUCRSrfv" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-490229aa522so5163545e9.3 for ; Tue, 19 May 2026 08:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1779204006; x=1779808806; 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=hwCcBmwavBVCJWzCp+c36LUoqjkVTauvQKvnfp7nhdc=; b=IUCRSrfvCqr4oSgOg1w1WrFXC0WWmD7NzvJ9AYQjzZ5SyoXAHRNgAFujltmwtvaWlh 3r7SaiKk3dFyNn5Xz8gOrGoRwecqwMfGdcAA2/7Xy/q0x5OKBP6HjEO2Hy/sfNH9POqn H2AWGXoZ8ex6DazyggwTGlvusuuwF++iFd+4O2OqRhTwD4jQb1sdcuYNnwvgXmRAiFwp ZkVDB+IvC+CdELDzyRtherQhQfnUmPUvO0cbUlNK0iwT1AvTTa1Xwb9d76PFZZzQGYcS hnk20+kvfm2N3VDYUSK21F0PxNr1ej3YiHeQIpO9YO60QKWoTtBCyoVNJnlXyKIib0HQ tnQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779204006; x=1779808806; 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=hwCcBmwavBVCJWzCp+c36LUoqjkVTauvQKvnfp7nhdc=; b=BONj/hoo05D458OMzDLiijhTjmt6eZzYKAODaAuvGX6MhMCMe+ZBBNKWxhaht99c08 6vkGmkxtJ+PDGA3rs/U5LN733fLnNSI+hc6BTjBlyUKoDuKyhwPW10kNe/5DMN41s/7P diiP9Jcbz7999DmhpQ5Z56AU+dILhvGXTeDQ2BXBEqMA5gGFD91TqZMEzEabLOlROr/Z pD7hBE+zG3MLtqOT6F9yBDf3HONhJZHJrcxx1c/V/e4sKhyYbyTMFkld6jfDUfYb4WxG x+PGoj6vbn1qCgx4C42wNF+/ztgiWym6yXXGcXL+XmGPNCOhQ2nJowfToMxl5Ez4meKD omYA== X-Forwarded-Encrypted: i=1; AFNElJ+0bwcN3jayHw0iF+DTg+EC2NwZSwZbkAmOsVXVBuxI0RPAsCaeB1e2mB7oj8rtTRj3VevZjJLjHULS6sM=@vger.kernel.org X-Gm-Message-State: AOJu0Yw4LIgbn6KmJQi9dTY0krGKeqUQce58ixqd3PNAb45GOQwXIcCJ ZDd6HfZND0nTiwb3HPmv5oN0heQdtY5byVoJzYzfUdrGYIB3VqTk923xMa7jwzgRO7g= X-Gm-Gg: Acq92OFgNWj9CXtibZODDlXhrOEq5qR5EpOQDe2lstv2g0SiCOeSlyGP40U8Cb6rjrq 4IhTgGFgKulWbeTS+Z2jzP1UbBe7psSFDdpMhhtzCdPpQl7cZmtYYY6nsBXZtRQzw8SrGvvW3ZE rohcQvNsIKSetnTCIzYT9CiGLcw0RP0knpsDoz+J0vnACyz/eb2BHl/mOAm4Fr08Xy9b4KNIhz4 9sJLk2jdQqyZvq3K2IKyK9bgxiPkjx7EJnE39fM5UuPkQ6unlHihx11aaVs2WgrjvwwCw0ehHlw Qij0tRKVtsdT6f2luJJYPfMMg5r8ceJddaPb1bYVDIOTR+I2fZ0DOq8gZyHYQIhGvLIayDIhKSX /tr2JVmQgbNN520MtOhv1mfA0HLn8XgaKjyL2O90+cmKsp/QZXCzRPZqxDnukjAv1mpjh45djwC OyFA28NHPLtDAxTmrctX7Yci4ta3/h1RaCRL4AkjVkN//MXd5Qp/xpCIzDsQhV+UQX2ALYyCZeI vkbuAaylqbOgbsUmrbP8ktdqA== X-Received: by 2002:a05:600c:3b12:b0:488:a824:fdff with SMTP id 5b1f17b1804b1-48fe61ed2cfmr295373205e9.22.1779204005684; Tue, 19 May 2026 08:20:05 -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-48fe4c8344asm563003675e9.1.2026.05.19.08.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2026 08:20:03 -0700 (PDT) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20=28The=20Capable=20Hub=29?= To: Vinod Koul Cc: Neil Armstrong , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] phy: nxp-ptn3222: Use named initializers for struct i2c_device_id Date: Tue, 19 May 2026 17:19:57 +0200 Message-ID: <20260519151957.1593214-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=1568; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=G6h3h+AQvii7Rd03uciCOrbEpPKggEJtO0biGxitxj0=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBqDH+dfCYGrP0jbkzKS02iLKVVvQXiUqAlIDxub Ikfi6cnHh6JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCagx/nQAKCRCPgPtYfRL+ TrQyB/9TUnrgt4Lq5lTBMX8R/pkcbUXw8nCeySijN91Te5poSsLT6mi3WqH43Iua+OufnP+nZO3 eYiw5w0R7QYcpbcY/nAfr4usdx7lqHdT8RGKj7T+fZNy8mfttzOANX/3NfyTkjJHO3iLcjVA5tA sW4ry9XRPDLgeDe1mIMDJdf5a6ld1JXrgyO32xDq07kupEKA/xNYINAzW6a/i7X5TapB+6KD1tT cwQRVX9adWYfokzWGCLOeVNLotzHgAHc0qsuFy2SNX4DKWga2z/jP1GQ96QB1nZuvbz3PzWbl4u 9HHkMlM/W+HMXKO8fdvqOl6Yc4qwQCgDLc2X+x9t3Y0N8mIX 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 arrays, only their 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 the driver doesn't make use of .driver_data, so apart from the better readability this is only about consistency with other subsystems. Best regards Uwe drivers/phy/phy-nxp-ptn3222.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-nxp-ptn3222.c b/drivers/phy/phy-nxp-ptn3222.c index c6179d8701e6..6cb79b5c4fdb 100644 --- a/drivers/phy/phy-nxp-ptn3222.c +++ b/drivers/phy/phy-nxp-ptn3222.c @@ -97,7 +97,7 @@ static int ptn3222_probe(struct i2c_client *client) } =20 static const struct i2c_device_id ptn3222_table[] =3D { - { "ptn3222" }, + { .name =3D "ptn3222" }, { } }; MODULE_DEVICE_TABLE(i2c, ptn3222_table); base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 --=20 2.47.3