ASoC: Fix snd_soc_kcontrol_platform() return type
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 15 Apr 2014 20:24:21 +0000 (22:24 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 15 Apr 2014 22:53:10 +0000 (23:53 +0100)
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>
include/sound/soc.h

index 94a2dc20ad6e359c66bc2d845fe5a9f1be76b6df..81454b0dd624786290cf631607d7fdf17c184bc8 100644 (file)
@@ -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);