summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-19 16:57:22 +0200
committerJakub Kicinski <kuba@kernel.org>2026-05-20 19:01:25 -0700
commitaf998e3688b7a74c12eaee841767d2956a165a58 (patch)
treee80bed6f5072ea3bb2f15d75aa0612fdb5efcdbd /scripts/basic
parent0b87d2ab030fd969ea626b2da95594949a2c0508 (diff)
net: dsa: 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. While touching these arrays, unify usage of whitespace in the list terminator. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20260519145722.1590298-2-u.kleine-koenig@baylibre.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions