ASoC: mc13783: Use SOC_ENUM_SINGLE_DECL()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 09:16:08 +0000 (10:16 +0100)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 02:20:31 +0000 (11:20 +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/mc13783.c

index 582c2bbd42cb9eae83346b5fbcd4e497d6101493..21c8baa2dd22ea606dc5b83a0e5bfd1c11e65d7d 100644 (file)
@@ -408,8 +408,8 @@ static const char * const adcl_enum_text[] = {
        "MC1L", "RXINL",
 };
 
-static const struct soc_enum adcl_enum =
-       SOC_ENUM_SINGLE(0, 0, ARRAY_SIZE(adcl_enum_text), adcl_enum_text);
+static SOC_ENUM_SINGLE_DECL(adcl_enum,
+                           0, 0, adcl_enum_text);
 
 static const struct snd_kcontrol_new left_input_mux =
        SOC_DAPM_ENUM_VIRT("Route", adcl_enum);
@@ -418,8 +418,8 @@ static const char * const adcr_enum_text[] = {
        "MC1R", "MC2", "RXINR", "TXIN",
 };
 
-static const struct soc_enum adcr_enum =
-       SOC_ENUM_SINGLE(0, 0, ARRAY_SIZE(adcr_enum_text), adcr_enum_text);
+static SOC_ENUM_SINGLE_DECL(adcr_enum,
+                           0, 0, adcr_enum_text);
 
 static const struct snd_kcontrol_new right_input_mux =
        SOC_DAPM_ENUM_VIRT("Route", adcr_enum);
@@ -580,9 +580,9 @@ static struct snd_soc_dapm_route mc13783_routes[] = {
 static const char * const mc13783_3d_mixer[] = {"Stereo", "Phase Mix",
                                                "Mono", "Mono Mix"};
 
-static const struct soc_enum mc13783_enum_3d_mixer =
-       SOC_ENUM_SINGLE(MC13783_AUDIO_RX1, 16, ARRAY_SIZE(mc13783_3d_mixer),
-                       mc13783_3d_mixer);
+static SOC_ENUM_SINGLE_DECL(mc13783_enum_3d_mixer,
+                           MC13783_AUDIO_RX1, 16,
+                           mc13783_3d_mixer);
 
 static struct snd_kcontrol_new mc13783_control_list[] = {
        SOC_SINGLE("Loudspeaker enable", MC13783_AUDIO_RX0, 5, 1, 0),
This page took 0.027972 seconds and 5 git commands to generate.