summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-07-02 16:53:40 +0200
committerLee Jones <lee@kernel.org>2026-07-30 14:32:55 +0100
commit02c54e90785c4d75eb0adf8e08f69b181e1d4758 (patch)
tree758f8090684493655ec68f0a81ac0f9f12ee0217 /tools/perf/scripts/python
parente9929b4b61dc5eb0e68a208e272f6e8b2d2eb0d5 (diff)
downloadlinux-02c54e90785c4d75eb0adf8e08f69b181e1d4758.tar.gz
linux-02c54e90785c4d75eb0adf8e08f69b181e1d4758.zip
mfd: Initialize spi_device_id arrays using member names
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 spi_device_id that replaces .driver_data by an anonymous union. Also adapt spacing and usage of commas to the most common style. This patch doesn't modify the compiled array, only its representation in source form benefits. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/f83c8292e7e3ba9425792591fb136d4ae1468215.1783003256.git.u.kleine-koenig@baylibre.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions