]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipmi: 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:01:56 +0000 (17:01 +0200)
committerCorey Minyard <corey@minyard.net>
Tue, 19 May 2026 17:32:40 +0000 (12:32 -0500)
commit8a8ba84886c905bd43dbdc3b3f78c7ba8f8661f3
tree0ead7fd3b13b6fc7461418aa9a38d4474053bfbc
parentcc3f0c66183022444c1ff35ad6885127200eb921
ipmi: 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>
Message-ID: <20260519150156.1590826-2-u.kleine-koenig@baylibre.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmb_dev_int.c
drivers/char/ipmi/ipmi_ipmb.c
drivers/char/ipmi/ipmi_ssif.c
drivers/char/ipmi/ssif_bmc.c