diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-03-09 13:08:21 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-10 13:35:27 +0000 |
commit | 14596692631eadbefba8419698cccfc23bfccd2b (patch) | |
tree | 27f034fb740ba28588ebfc163bc30b940c6c8b42 /sound/soc/soc-topology.c | |
parent | df817f8e71e3a0256bd3d2d3a4e5399b409698f4 (diff) | |
download | lwn-14596692631eadbefba8419698cccfc23bfccd2b.tar.gz lwn-14596692631eadbefba8419698cccfc23bfccd2b.zip |
ASoC: soc-dapm: add for_each_card_widgets() macro
To be more readable code, this patch adds
new for_each_card_widgets() macro, and replace existing code to it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/87r1y2goga.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-topology.c')
-rw-r--r-- | sound/soc/soc-topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 575da6aba807..33909afd3bbc 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -2774,7 +2774,7 @@ void snd_soc_tplg_widget_remove_all(struct snd_soc_dapm_context *dapm, { struct snd_soc_dapm_widget *w, *next_w; - list_for_each_entry_safe(w, next_w, &dapm->card->widgets, list) { + for_each_card_widgets_safe(dapm->card, w, next_w) { /* make sure we are a widget with correct context */ if (w->dobj.type != SND_SOC_DOBJ_WIDGET || w->dapm != dapm) |