diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-18 01:30:41 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-20 10:31:18 -0700 |
commit | 1a1035a9854fd893d487a84edccc1d5804e1d716 (patch) | |
tree | 48a9d42c482d4c390e497d7197c4d4a40cd7f33c /include/sound | |
parent | f70f18f7d459b7958a4d3944396e2bc4a9f7ed72 (diff) | |
download | op-kernel-dev-1a1035a9854fd893d487a84edccc1d5804e1d716.zip op-kernel-dev-1a1035a9854fd893d487a84edccc1d5804e1d716.tar.gz |
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/sound')
-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 34efab6..93aa894 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 * |