Explorar o código

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>
Kuninori Morimoto %!s(int64=10) %!d(string=hai) anos
pai
achega
da599fd34b
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  1. 0 2
      sound/soc/sh/rcar/rsnd.h
  2. 1 0
      sound/soc/sh/rcar/src.c

+ 0 - 2
sound/soc/sh/rcar/rsnd.h

@@ -554,8 +554,6 @@ int rsnd_src_ssiu_stop(struct rsnd_mod *ssi_mod,
 int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod);
 int rsnd_src_ssi_irq_enable(struct rsnd_mod *ssi_mod);
 int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod);
 int rsnd_src_ssi_irq_disable(struct rsnd_mod *ssi_mod);
 
 
-#define rsnd_src_nr(priv) ((priv)->src_nr)
-
 /*
 /*
  *	R-Car SSI
  *	R-Car SSI
  */
  */

+ 1 - 0
sound/soc/sh/rcar/src.c

@@ -30,6 +30,7 @@ struct rsnd_src {
 
 
 #define RSND_SRC_NAME_SIZE 16
 #define RSND_SRC_NAME_SIZE 16
 
 
+#define rsnd_src_nr(priv) ((priv)->src_nr)
 #define rsnd_enable_sync_convert(src) ((src)->sen.val)
 #define rsnd_enable_sync_convert(src) ((src)->sen.val)
 #define rsnd_src_of_node(priv) \
 #define rsnd_src_of_node(priv) \
 	of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,src")
 	of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,src")