summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-19 19:04:20 +0300
committerBenjamin Tissoires <bentiss@kernel.org>2026-06-01 19:26:14 +0300
commiteda0f9e5708786c1d0dfc582f3b127708dfbf835 (patch)
treea9acba4e1a8f3c09610102a763c1a74cf5a9653c /include/linux
parente6f4f084ecd876a333c4cf13d0229217dbfcd8e8 (diff)
downloadlinux-eda0f9e5708786c1d0dfc582f3b127708dfbf835.tar.xz
HID: i2c-hid-of: 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 array, only its 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> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions