]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: nxp-ptn3222: Use named initializers for struct i2c_device_id
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 15:19:57 +0000 (17:19 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 11 Jun 2026 06:56:43 +0000 (12:26 +0530)
commit4904117935319233b1ec8f0528560dc91e8ae4c2
treee67ef33be9f148e124815f9f464e44c9bf8a661c
parentb3ee497970c63cea37976aeaa84bac39611fe0eb
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) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260519151957.1593214-2-u.kleine-koenig@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/phy-nxp-ptn3222.c