diff mbox

[083/102] ASoC: ak4535: Use SOC_ENUM_SINGLE_CONST()

Message ID 1392724308-13375-3-git-send-email-tiwai@suse.de (mailing list archive)
State Changes Requested
Delegated to: Mark Brown
Headers show

Commit Message

Takashi Iwai Feb. 18, 2014, 11:51 a.m. UTC
... for improving readability and maintainability.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/ak4535.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c
index 684fe910669f..143ef8a309dc 100644
--- a/sound/soc/codecs/ak4535.c
+++ b/sound/soc/codecs/ak4535.c
@@ -72,11 +72,11 @@  static const char *ak4535_deemp[] = {"44.1kHz", "Off", "48kHz", "32kHz"};
 static const char *ak4535_mic_select[] = {"Internal", "External"};
 
 static const struct soc_enum ak4535_enum[] = {
-	SOC_ENUM_SINGLE(AK4535_SIG1, 7, 2, ak4535_mono_gain),
-	SOC_ENUM_SINGLE(AK4535_SIG1, 6, 2, ak4535_mono_out),
-	SOC_ENUM_SINGLE(AK4535_MODE2, 2, 2, ak4535_hp_out),
-	SOC_ENUM_SINGLE(AK4535_DAC, 0, 4, ak4535_deemp),
-	SOC_ENUM_SINGLE(AK4535_MIC, 1, 2, ak4535_mic_select),
+	SOC_ENUM_SINGLE_CONST(AK4535_SIG1, 7, ak4535_mono_gain),
+	SOC_ENUM_SINGLE_CONST(AK4535_SIG1, 6, ak4535_mono_out),
+	SOC_ENUM_SINGLE_CONST(AK4535_MODE2, 2, ak4535_hp_out),
+	SOC_ENUM_SINGLE_CONST(AK4535_DAC, 0, ak4535_deemp),
+	SOC_ENUM_SINGLE_CONST(AK4535_MIC, 1, ak4535_mic_select),
 };
 
 static const struct snd_kcontrol_new ak4535_snd_controls[] = {