diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-09 02:43:18 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-13 22:57:47 +0200 |
commit | 891caea417469b4efdf506b6be1ef461b759c999 (patch) | |
tree | 0067501741dec536c5491a178ef179472fc3c903 /include/sound | |
parent | Merge branch 'topic/rcar' of git://git.kernel.org/pub/scm/linux/kernel/git/br... (diff) | |
download | linux-891caea417469b4efdf506b6be1ef461b759c999.tar.xz linux-891caea417469b4efdf506b6be1ef461b759c999.zip |
ASoC: simple_card_utils: add asoc_simple_card_clk_xxx()
Current simple-card-utils sets asoc_simple_dai::clk via
asoc_simple_card_parse_clk().
Current simple card drivers are using it directly for
clk_enable/disable.
Encapsulation is one of simple card util's purpose.
Let's encapsulate it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 108cae459ed0..840d624148df 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -45,6 +45,8 @@ int asoc_simple_card_parse_clk(struct device *dev, struct device_node *dai_of_node, struct asoc_simple_dai *simple_dai, const char *name); +int asoc_simple_card_clk_enable(struct asoc_simple_dai *dai); +void asoc_simple_card_clk_disable(struct asoc_simple_dai *dai); #define asoc_simple_card_parse_cpu(node, dai_link, \ list_name, cells_name, is_single_link) \ |