diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2021-03-26 06:26:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-31 15:42:44 +0300 |
commit | 39af7f7a03d007e5590f0b852b3f2fed9e703d0f (patch) | |
tree | 838bb60765c2cd69e2f41f2e4be07602028afb33 /drivers/scsi/3w-9xxx.c | |
parent | a6e8798061bf0f33caea6fd47b0cb367309e34d0 (diff) | |
download | linux-39af7f7a03d007e5590f0b852b3f2fed9e703d0f.tar.xz |
ASoC: simple-card: cleanup graph_for_each_link()
simple-card checks DT links 2 times. 1st is for counting DAIs / links
to allocating memory, 2nd is for detecting DAIs.
To detecting DAIs as CPU-dummy -> dummy-Codec order when DPCM case,
it uses loops 2 times.
Because of this kind of complex background, it needs to use local
varuable for it, and each call-back functions need to care about it.
Now, 1st and 2nd DT link check are using same order,
thus we can share same code. This patch do it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/875z1e1tov.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
0 files changed, 0 insertions, 0 deletions