]> git.hungrycats.org Git - linux/commit
fbdev: matroxfb/ssd1307fb: Use named initializers for struct i2c_device_id
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 18 May 2026 16:08:08 +0000 (18:08 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 7 Jun 2026 16:25:41 +0000 (18:25 +0200)
commit608a9fe171a770b62bf34aaa1f4992061c9dcdb3
tree72433f479cf9534b8b7a7c5b8a3314d0da4eeaba
parente38b27199e0f5b530fd2b033e3b63241a0b16596
fbdev: matroxfb/ssd1307fb: 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.

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>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/matrox/matroxfb_maven.c
drivers/video/fbdev/ssd1307fb.c