summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-07-03 17:46:24 +0200
committerDavid Heidelberg <david@ixit.cz>2026-08-11 18:14:00 +0200
commitd9d8172a641af38397a5750db0dbfb41e4504727 (patch)
tree6be852c46430a6abb40ff99d785ad38ad2df742b /tools/perf/scripts/python/stackcollapse.py
parent5be3e23a47950a169bc2ea97d02b485d81b5c7c5 (diff)
nfc: Initialize spi_device_idarrays 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. This patch doesn't modify the compiled arrays, only their representation in source form benefits. Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/308a0d43ef042566ca595f1afa803cac592a4643.1783091699.git.u.kleine-koenig@baylibre.com Signed-off-by: David Heidelberg <david@ixit.cz>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions