summaryrefslogtreecommitdiff
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-18 14:12:03 +0300
committerLee Jones <lee@kernel.org>2026-06-11 17:12:12 +0300
commitb3c8bb2e69979e3aadcbfc5ac53424ecf26a9277 (patch)
tree17f0a98f18dcaa8bef2fe76e299485f838ad4a0b /include/linux/console_struct.h
parentacea35b567d0f610d533ca661f4106ac12583f78 (diff)
downloadlinux-b3c8bb2e69979e3aadcbfc5ac53424ecf26a9277.tar.xz
backlight: Use named initializers for arrays of i2c_device_data
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. The mentioned robustness is relevant for a planned change to struct i2c_device_id that replaces .driver_data by an anonymous union. While touching all these arrays, unify usage of whitespace in the list terminator. 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> Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org> Link: https://patch.msgid.link/20260518111203.639603-2-u.kleine-koenig@baylibre.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions