summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2015-02-20 10:30:41 +0000
committerMark Brown <broonie@kernel.org>2015-03-07 15:04:30 +0000
commit93b986e246248d0587acb4f073a621179a16b763 (patch)
treea0bd33db1c8754900ba86fa85ed893f325ed578e /sound
parent82e76ed38edbdb338d64f5f2486fcd1482c8859a (diff)
downloadlinux-93b986e246248d0587acb4f073a621179a16b763.tar.gz
linux-93b986e246248d0587acb4f073a621179a16b763.tar.bz2
linux-93b986e246248d0587acb4f073a621179a16b763.zip
ASoC: rsnd: dvc: add rsnd_dvc_of_node()
This patch adds rsnd_dvc_of_node() to get DVC subnode from DT. This is prepare for new DT bindings for 1st DMAC 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/dvc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/dvc.c b/sound/soc/sh/rcar/dvc.c
index d7f9ed959c4e..e0990180e1ea 100644
--- a/sound/soc/sh/rcar/dvc.c
+++ b/sound/soc/sh/rcar/dvc.c
@@ -24,6 +24,9 @@ struct rsnd_dvc {
struct rsnd_kctrl_cfg_s rdown; /* Ramp Rate Down */
};
+#define rsnd_dvc_of_node(priv) \
+ of_get_child_by_name(rsnd_priv_to_dev(priv)->of_node, "rcar_sound,dvc")
+
#define rsnd_mod_to_dvc(_mod) \
container_of((_mod), struct rsnd_dvc, mod)