summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-15 13:16:28 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-06-04 00:13:36 +0300
commit347fcfcc0758cc7523f440f47594f9a5037c50c0 (patch)
tree56f12bc40782e1ed6b2b45eb703d662bc8793c01 /include
parent0549c4c01338abe343a4ffaa4733475d0a85d38a (diff)
downloadlinux-347fcfcc0758cc7523f440f47594f9a5037c50c0.tar.xz
power: supply: 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> # max77976_charger.c Link: https://patch.msgid.link/20260515101629.4132270-2-u.kleine-koenig@baylibre.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions