summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen2014-04-15 22:24:21 +0200
committerMark Brown2014-04-16 00:53:10 +0200
commit66097ca7889965e1b85de5cf699d7d728d84f47a (patch)
tree7880da472cb37929a6510e8a177823c5dc73addc /include/sound
parentASoC: Let snd_soc_platform subclass snd_soc_component (diff)
downloadkernel-qcow2-linux-66097ca7889965e1b85de5cf699d7d728d84f47a.tar.gz
kernel-qcow2-linux-66097ca7889965e1b85de5cf699d7d728d84f47a.tar.xz
kernel-qcow2-linux-66097ca7889965e1b85de5cf699d7d728d84f47a.zip
ASoC: Fix snd_soc_kcontrol_platform() return type
This should obviously be snd_soc_platform * and not snd_soc_codec * Fixes: f6272ff8a5f4 ("ASoC: Add snd_soc_kcontrol_platform() helper function") Reported-by: kbuild test robot <fengguang.wu@intel.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 94a2dc20ad6e..81454b0dd624 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1253,7 +1253,7 @@ static inline struct snd_soc_codec *snd_soc_kcontrol_codec(
* registered with snd_soc_add_platform_controls() or via table based setup of
* a snd_soc_platform_driver. Otherwise the behavior is undefined.
*/
-static inline struct snd_soc_codec *snd_soc_kcontrol_platform(
+static inline struct snd_soc_platform *snd_soc_kcontrol_platform(
struct snd_kcontrol *kcontrol)
{
return snd_kcontrol_chip(kcontrol);