From: Uwe Kleine-König (The Capable Hub) Date: Tue, 19 May 2026 15:19:57 +0000 (+0200) Subject: phy: nxp-ptn3222: Use named initializers for struct i2c_device_id X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=4904117935319233b1ec8f0528560dc91e8ae4c2;p=thirdparty%2Fkernel%2Flinux.git phy: nxp-ptn3222: Use named initializers for struct i2c_device_id 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önig (The Capable Hub) Link: https://patch.msgid.link/20260519151957.1593214-2-u.kleine-koenig@baylibre.com Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/phy-nxp-ptn3222.c b/drivers/phy/phy-nxp-ptn3222.c index c6179d8701e61..6cb79b5c4fdb8 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) } static const struct i2c_device_id ptn3222_table[] = { - { "ptn3222" }, + { .name = "ptn3222" }, { } }; MODULE_DEVICE_TABLE(i2c, ptn3222_table);