summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-15 17:10:40 +0200
committerBrian Masney <bmasney@redhat.com>2026-06-29 15:48:54 -0400
commitcae51b908edc6edca381f4cf9fb139ee40968a88 (patch)
tree8a62bfa12c5d060f7e03771e66df1d2382770384 /include
parentf5964864856c3422c8193e22d9ae80e2edbbcf18 (diff)
clk: 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 and commas. 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: Luca Ceresoli <luca.ceresoli@bootlin.com> # clk-versaclock5 Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions