diff mbox

ASoC: Fix snd_soc_kcontrol_platform() return type

Message ID 1397593461-11369-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit 66097ca7889965e1b85de5cf699d7d728d84f47a
Headers show

Commit Message

Lars-Peter Clausen April 15, 2014, 8:24 p.m. UTC
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>
---
 include/sound/soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown April 15, 2014, 10:53 p.m. UTC | #1
On Tue, Apr 15, 2014 at 10:24:21PM +0200, Lars-Peter Clausen wrote:
> This should obviously be snd_soc_platform * and not snd_soc_codec *

Applied, thanks.
diff mbox

Patch

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 3396594..488e749 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1252,7 +1252,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);