ASoC: tlv320aic26: Use SOC_ENUM_SINGLE_DECL()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 09:27:40 +0000 (10:27 +0100)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 02:28:17 +0000 (11:28 +0900)
Just replace with the helper macro.  No functional change at all.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/tlv320aic26.c

index 94a658fa6d97408e84682cea3e3ecc4c9a01cc1d..ff5f23d482b7f95062574d2d7a695259bada45bb 100644 (file)
@@ -238,8 +238,9 @@ static struct snd_soc_dai_driver aic26_dai = {
  * ALSA controls
  */
 static const char *aic26_capture_src_text[] = {"Mic", "Aux"};
-static const struct soc_enum aic26_capture_src_enum =
-       SOC_ENUM_SINGLE(AIC26_REG_AUDIO_CTRL1, 12, 2, aic26_capture_src_text);
+static SOC_ENUM_SINGLE_DECL(aic26_capture_src_enum,
+                           AIC26_REG_AUDIO_CTRL1, 12,
+                           aic26_capture_src_text);
 
 static const struct snd_kcontrol_new aic26_snd_controls[] = {
        /* Output */