[alsa-devel] [PATCH 076/102] ASoC: ad1836: Use SOC_ENUM_SINGLE_DECL()

Takashi Iwai tiwai at suse.de
Tue Feb 18 12:38:32 CET 2014


Just replace with the helper macro.  No functional change at all.

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

diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index 77f459868579..685998dd086e 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -40,8 +40,8 @@ struct ad1836_priv {
  */
 static const char *ad1836_deemp[] = {"None", "44.1kHz", "32kHz", "48kHz"};
 
-static const struct soc_enum ad1836_deemp_enum =
-	SOC_ENUM_SINGLE(AD1836_DAC_CTRL1, 8, 4, ad1836_deemp);
+static SOC_ENUM_SINGLE_DECL(ad1836_deemp_enum,
+			    AD1836_DAC_CTRL1, 8, ad1836_deemp);
 
 #define AD1836_DAC_VOLUME(x) \
 	SOC_DOUBLE_R("DAC" #x " Playback Volume", AD1836_DAC_L_VOL(x), \
-- 
1.8.5.2



More information about the Alsa-devel mailing list