summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-ac97.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-07-25 13:23:44 +0200
committerMark Brown <broonie@kernel.org>2024-07-29 02:41:16 +0200
commitadd41ea55060d5e41d62268aa0bda2a27e0f5053 (patch)
tree82974d00fa3b3bf34c4f1343b11ae8af91e1c4b1 /sound/soc/soc-ac97.c
parentASoC: codecs: wsa881x: Use designator array initializers for Soundwire ports (diff)
downloadlinux-add41ea55060d5e41d62268aa0bda2a27e0f5053.tar.xz
linux-add41ea55060d5e41d62268aa0bda2a27e0f5053.zip
ASoC: codecs: wsa883x: 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 wsa_port_ids, e.g. WSA883X_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 <krzysztof.kozlowski@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patch.msgid.link/20240725-asoc-wsa88xx-port-arrays-v1-2-80a03f440c72@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-ac97.c')
0 files changed, 0 insertions, 0 deletions