diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-07-15 03:11:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-16 17:10:34 -0400 |
commit | da599fd34b1f2f14f2c387e6b3a909f9ff519c8a (patch) | |
tree | c454bc71cf1b6148785ecee4abc84d20f2156689 | |
parent | 4f35fabaa30b116d549d95fe7dae907510c71862 (diff) |
ASoC: rsnd: move SRC specific macro into src.c
rsnd_src_nr() is used only from src.c
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 2 | ||||
-rw-r--r-- | sound/soc/sh/rcar/src.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index 8f793f020b08..c8d202939e25 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -554,8 +554,6 @@ int rsnd_src_ssiu_stop(struct rsnd_mod *ssi_mod, | |||
554 | int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod); | 554 | int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod); |
555 | int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod); | 555 | int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod); |
556 | 556 | ||
557 | #define rsnd_src_nr(priv) ((priv)->src_nr) | ||
558 | |||
559 | /* | 557 | /* |
560 | * R-Car SSI | 558 | * R-Car SSI |
561 | */ | 559 | */ |
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 38d0aba7426e..0b06ac8dbeec 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -30,6 +30,7 @@ struct rsnd_src { | |||
30 | 30 | ||
31 | #define RSND_SRC_NAME_SIZE 16 | 31 | #define RSND_SRC_NAME_SIZE 16 |
32 | 32 | ||
33 | #define rsnd_src_nr(priv) ((priv)->src_nr) | ||
33 | #define rsnd_enable_sync_convert(src) ((src)->sen.val) | 34 | #define rsnd_enable_sync_convert(src) ((src)->sen.val) |
34 | #define rsnd_src_of_node(priv) \ | 35 | #define rsnd_src_of_node(priv) \ |
35 | of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,src") | 36 | of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,src") |