projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e76ed
)
ASoC: rsnd: dvc: add rsnd_dvc_of_node()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Fri, 20 Feb 2015 10:30:41 +0000
(10:30 +0000)
committer
Mark Brown
<broonie@kernel.org>
Sat, 7 Mar 2015 15:04:30 +0000
(15:04 +0000)
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>
sound/soc/sh/rcar/dvc.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/sh/rcar/dvc.c
b/sound/soc/sh/rcar/dvc.c
index d7f9ed959c4e208a8126174f76daee5a79af133f..e0990180e1ea2bc4ad9d2e0d14060e9681b3237d 100644
(file)
--- 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)