ASoC: lm4857: Use SOC_ENUM_SINGLE_EXT_DECL()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 09:09:52 +0000 (10:09 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 20 Feb 2014 02:22:43 +0000 (11:22 +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/lm4857.c

index 0e5743ea79dfdf6c4a4191694955883fbede59ca..4f048db9f55f1aa0953f4c971c0425a3178a159c 100644 (file)
@@ -101,8 +101,7 @@ static const char *lm4857_mode[] = {
        "Headphone",
 };
 
-static const struct soc_enum lm4857_mode_enum =
-       SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lm4857_mode), lm4857_mode);
+static SOC_ENUM_SINGLE_EXT_DECL(lm4857_mode_enum, lm4857_mode);
 
 static const struct snd_soc_dapm_widget lm4857_dapm_widgets[] = {
        SND_SOC_DAPM_INPUT("IN"),
This page took 0.025288 seconds and 5 git commands to generate.