aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2024-07-25 13:23:45 +0200
committerMark Brown <[email protected]>2024-07-29 01:41:17 +0100
commit125ed86b0d669334dbc567f441d10163ff0c44bc (patch)
treec4f04099107ded7c626a4a97eb7872167a48c9b3 /tools/perf/scripts/python/parallel-perf.py
parentadd41ea55060d5e41d62268aa0bda2a27e0f5053 (diff)
ASoC: codecs: wsa884x: Use designator array initializers for Soundwire ports
Two arrays (with 'struct sdw_dpn_prop' and 'struct sdw_port_config') store configuration of Soundwire ports, thus each of their element is indexed according to the port number (enum wsa884x_port_ids, e.g. WSA884X_PORT_DAC). Except the indexing, they also store port number offset by one in member 'num'. Entire code depends on that correlation between array index and port number, thus make it explicit by using designators. The code is functionally the same, but more obvious for reading. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions