diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-03-09 18:48:54 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-12 10:57:43 -0700 |
commit | 946857636d279486eaa47c930930185631f28fce (patch) | |
tree | 4792c587b7b7fbf8fe020b4749e5ee09e780cc4f /include/sound | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-stable-946857636d279486eaa47c930930185631f28fce.tar.gz linux-stable-946857636d279486eaa47c930930185631f28fce.tar.bz2 linux-stable-946857636d279486eaa47c930930185631f28fce.zip |
ASoC: Add snd_soc_of_put_dai_link_codecs() helper function
The code for dereferencing device nodes in the 'codecs' array is moved
to a separate function so we can avoid open coding that in drivers.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 747fd583b9dc..4a387f0b3d56 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1807,6 +1807,7 @@ int snd_soc_of_get_dai_name(struct device_node *of_node, int snd_soc_of_get_dai_link_codecs(struct device *dev, struct device_node *of_node, struct snd_soc_dai_link *dai_link); +void snd_soc_of_put_dai_link_codecs(struct snd_soc_dai_link *dai_link); int snd_soc_add_dai_link(struct snd_soc_card *card, struct snd_soc_dai_link *dai_link); |