diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-23 21:40:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 07:41:37 -0500 |
commit | 39cf3c4064b8db25efe501fec8e3c48a578b4b58 (patch) | |
tree | 9967ac40ee95a91688fad8925bb570c79c5b4b98 | |
parent | c926b746055adfd915936c67244e635e9c7a3d84 (diff) |
ASoC: rsnd: Merge macros in scu.c
Merge #define lines, since these are defined
in the scattering place
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/sh/rcar/scu.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c index 1adc85825f4e..8181ec55ad21 100644 --- a/sound/soc/sh/rcar/scu.c +++ b/sound/soc/sh/rcar/scu.c | |||
@@ -16,9 +16,6 @@ struct rsnd_scu { | |||
16 | struct clk *clk; | 16 | struct clk *clk; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #define rsnd_scu_mode_flags(p) ((p)->info->flags) | ||
20 | #define rsnd_scu_convert_rate(p) ((p)->info->convert_rate) | ||
21 | |||
22 | #define RSND_SCU_NAME_SIZE 16 | 19 | #define RSND_SCU_NAME_SIZE 16 |
23 | 20 | ||
24 | /* | 21 | /* |
@@ -30,6 +27,18 @@ struct rsnd_scu { | |||
30 | #define OTBL_18 (6 << 16) | 27 | #define OTBL_18 (6 << 16) |
31 | #define OTBL_16 (8 << 16) | 28 | #define OTBL_16 (8 << 16) |
32 | 29 | ||
30 | #define rsnd_scu_mode_flags(p) ((p)->info->flags) | ||
31 | #define rsnd_scu_convert_rate(p) ((p)->info->convert_rate) | ||
32 | #define rsnd_mod_to_scu(_mod) \ | ||
33 | container_of((_mod), struct rsnd_scu, mod) | ||
34 | |||
35 | #define for_each_rsnd_scu(pos, priv, i) \ | ||
36 | for ((i) = 0; \ | ||
37 | ((i) < rsnd_scu_nr(priv)) && \ | ||
38 | ((pos) = (struct rsnd_scu *)(priv)->scu + i); \ | ||
39 | i++) | ||
40 | |||
41 | |||
33 | /* | 42 | /* |
34 | * image of SRC (Sampling Rate Converter) | 43 | * image of SRC (Sampling Rate Converter) |
35 | * | 44 | * |
@@ -99,15 +108,6 @@ struct rsnd_scu { | |||
99 | * | 108 | * |
100 | */ | 109 | */ |
101 | 110 | ||
102 | #define rsnd_mod_to_scu(_mod) \ | ||
103 | container_of((_mod), struct rsnd_scu, mod) | ||
104 | |||
105 | #define for_each_rsnd_scu(pos, priv, i) \ | ||
106 | for ((i) = 0; \ | ||
107 | ((i) < rsnd_scu_nr(priv)) && \ | ||
108 | ((pos) = (struct rsnd_scu *)(priv)->scu + i); \ | ||
109 | i++) | ||
110 | |||
111 | static int rsnd_scu_ssi_mode_init(struct rsnd_mod *mod, | 111 | static int rsnd_scu_ssi_mode_init(struct rsnd_mod *mod, |
112 | struct rsnd_dai *rdai, | 112 | struct rsnd_dai *rdai, |
113 | struct rsnd_dai_stream *io) | 113 | struct rsnd_dai_stream *io) |