diff options
author | 2018-09-18 01:30:41 +0000 | |
---|---|---|
committer | 2018-09-20 10:31:18 -0700 | |
commit | 1a1035a9854fd893d487a84edccc1d5804e1d716 (patch) | |
tree | 48a9d42c482d4c390e497d7197c4d4a40cd7f33c /include | |
parent | ASoC: add for_each_card_components() macro (diff) | |
download | linux-1a1035a9854fd893d487a84edccc1d5804e1d716.tar.gz linux-1a1035a9854fd893d487a84edccc1d5804e1d716.tar.bz2 linux-1a1035a9854fd893d487a84edccc1d5804e1d716.zip |
ASoC: add for_each_comp_order() macro
To be more readable code, this patch adds
new for_each_comp_order() macro, and replace existing code to it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 34efab6baff6..93aa894a57ef 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -372,6 +372,11 @@ #define SND_SOC_COMP_ORDER_LATE 1 #define SND_SOC_COMP_ORDER_LAST 2 +#define for_each_comp_order(order) \ + for (order = SND_SOC_COMP_ORDER_FIRST; \ + order <= SND_SOC_COMP_ORDER_LAST; \ + order++) + /* * Bias levels * |