diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-20 05:24:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-07 10:04:29 -0500 |
commit | 4ce3b17bd43b4f0136b1d0c7782d06fe9d3addfb (patch) | |
tree | 007169e85d153eb2b46305876699260c0d8ea54a /sound | |
parent | 8a2ff4262ca611c38b31fec0af65be656d934f52 (diff) |
ASoC: rsnd: tidyup rsnd_dma_to_mod() macro declaration position
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 6ee97e7f9948..ec77c9f1a57c 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -182,6 +182,8 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma, int id); | |||
182 | void rsnd_dma_quit(struct rsnd_dma *dma); | 182 | void rsnd_dma_quit(struct rsnd_dma *dma); |
183 | 183 | ||
184 | 184 | ||
185 | #define rsnd_dma_to_mod(_dma) container_of((_dma), struct rsnd_mod, dma) | ||
186 | |||
185 | /* | 187 | /* |
186 | * R-Car sound mod | 188 | * R-Car sound mod |
187 | */ | 189 | */ |
@@ -253,7 +255,6 @@ struct rsnd_mod { | |||
253 | 255 | ||
254 | #define rsnd_mod_to_priv(mod) (rsnd_io_to_priv(rsnd_mod_to_io(mod))) | 256 | #define rsnd_mod_to_priv(mod) (rsnd_io_to_priv(rsnd_mod_to_io(mod))) |
255 | #define rsnd_mod_to_dma(mod) (&(mod)->dma) | 257 | #define rsnd_mod_to_dma(mod) (&(mod)->dma) |
256 | #define rsnd_dma_to_mod(_dma) container_of((_dma), struct rsnd_mod, dma) | ||
257 | #define rsnd_mod_to_io(mod) ((mod)->io) | 258 | #define rsnd_mod_to_io(mod) ((mod)->io) |
258 | #define rsnd_mod_id(mod) ((mod)->id) | 259 | #define rsnd_mod_id(mod) ((mod)->id) |
259 | #define rsnd_mod_hw_start(mod) clk_prepare_enable((mod)->clk) | 260 | #define rsnd_mod_hw_start(mod) clk_prepare_enable((mod)->clk) |