diff mbox

[023/102] ASoC: wm8770: Fix wrong number of enum items

Message ID 1392723422-12689-8-git-send-email-tiwai@suse.de (mailing list archive)
State Accepted
Commit 7a6c0a58dc824523966f212c76322d47c5b0e6fe
Headers show

Commit Message

Takashi Iwai Feb. 18, 2014, 11:36 a.m. UTC
wm8770 codec driver defines ain_enum with a wrong number of items.

Use SOC_ENUM_DOUBLE_DECL() macro and it's automatically fixed.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/wm8770.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Feb. 20, 2014, 1:24 a.m. UTC | #1
On Tue, Feb 18, 2014 at 12:36:58PM +0100, Takashi Iwai wrote:
> wm8770 codec driver defines ain_enum with a wrong number of items.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c
index 89a18d82f303..5bce21013485 100644
--- a/sound/soc/codecs/wm8770.c
+++ b/sound/soc/codecs/wm8770.c
@@ -196,8 +196,8 @@  static const char *ain_text[] = {
 	"AIN5", "AIN6", "AIN7", "AIN8"
 };
 
-static const struct soc_enum ain_enum =
-	SOC_ENUM_DOUBLE(WM8770_ADCMUX, 0, 4, 8, ain_text);
+static SOC_ENUM_DOUBLE_DECL(ain_enum,
+			    WM8770_ADCMUX, 0, 4, ain_text);
 
 static const struct snd_kcontrol_new ain_mux =
 	SOC_DAPM_ENUM("Capture Mux", ain_enum);