ASoC: rsnd: move DVC specific macro into dvc.c
rsnd_dvc_nr() is used only from dvc.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>
This commit is contained in:

committed by
Mark Brown

parent
72413c107e
commit
4f35fabaa3
@@ -24,6 +24,7 @@ struct rsnd_dvc {
|
|||||||
struct rsnd_kctrl_cfg_s rdown; /* Ramp Rate Down */
|
struct rsnd_kctrl_cfg_s rdown; /* Ramp Rate Down */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define rsnd_dvc_nr(priv) ((priv)->dvc_nr)
|
||||||
#define rsnd_dvc_of_node(priv) \
|
#define rsnd_dvc_of_node(priv) \
|
||||||
of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,dvc")
|
of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,dvc")
|
||||||
|
|
||||||
|
@@ -579,7 +579,4 @@ void rsnd_dvc_remove(struct platform_device *pdev,
|
|||||||
struct rsnd_priv *priv);
|
struct rsnd_priv *priv);
|
||||||
struct rsnd_mod *rsnd_dvc_mod_get(struct rsnd_priv *priv, int id);
|
struct rsnd_mod *rsnd_dvc_mod_get(struct rsnd_priv *priv, int id);
|
||||||
|
|
||||||
#define rsnd_dvc_nr(priv) ((priv)->dvc_nr)
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user