diff options
| author | Kuninori Morimoto <[email protected]> | 2023-05-30 00:49:50 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-05-31 12:25:03 +0100 |
| commit | cfcb31c456b15e298f88fb5ebedf7b32b009d32d (patch) | |
| tree | 5125b0209719f2bafc01666ae611630bb6a1ff9b /tools/perf/scripts/python | |
| parent | 092830cf550667d5fa6286605167d232f2c1f61e (diff) | |
ASoC: soc-pcm.c: use dai_link on soc_get_playback_capture()
soc_get_playback_capture() (A) is using rtd->dai_link->xxx everywhere.
Because of that, 1 line is unnecessarily long and not readable.
(A) static int soc_get_playback_capture(...)
{
if (rtd->dai_link->dynamic ...) {
^^^^^^^^^^^^^
...
} else {
int cpu_capture = rtd->dai_link->c2c_params ?
^^^^^^^^^^^^^
...
}
if (rtd->dai_link->playback_only) {
^^^^^^^^^^^^^
...
}
...
}
This patch uses variable "dai_link" to be clear code.
Nothing changes the meanings.
Signed-off-by: Kuninori Morimoto <[email protected]>
Reviewed-by: Amadeusz Sławiński <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions