]> git.ipfire.org Git - thirdparty/linux.git/commit
mctp: i2c: 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:36:13 +0000 (17:36 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 02:01:14 +0000 (19:01 -0700)
commit0b87d2ab030fd969ea626b2da95594949a2c0508
treef68e066332d78f21d98a2167a8b1e95d53e3f791
parente2664271503c52694c46e1ab7edbbf0a78d2c98a
mctp: i2c: 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 this array, unify usage of whitespace in the list
terminator to what most other arrays are using.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Acked-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20260519153613.1594429-2-u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mctp/mctp-i2c.c