Skip to contentSkip to conversation

ASoC: Fix snd_soc_kcontrol_platform() return type

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Apr 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 include/sound/soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/sound/soc.h +1 -1
index 3396594..488e749 100644
@@ -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);
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 1 line · Lars-Peter Clausen

This should obviously be snd_soc_platform * and not snd_soc_codec *

Applied, thanks.