[alsa-devel] [PATCH 092/102] ASoC: uad1380: Use SOC_ENUM_SINGLE_CONST()

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


... for improving readability and maintainability.

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

diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c
index 72ee8e1838e5..9f112c41325e 100644
--- a/sound/soc/codecs/uda1380.c
+++ b/sound/soc/codecs/uda1380.c
@@ -237,10 +237,8 @@ static const char *uda1380_os_setting[] = {
 };
 
 static const struct soc_enum uda1380_deemp_enum[] = {
-	SOC_ENUM_SINGLE(UDA1380_DEEMP, 8, ARRAY_SIZE(uda1380_deemp),
-			uda1380_deemp),
-	SOC_ENUM_SINGLE(UDA1380_DEEMP, 0, ARRAY_SIZE(uda1380_deemp),
-			uda1380_deemp),
+	SOC_ENUM_SINGLE_CONST(UDA1380_DEEMP, 8, uda1380_deemp),
+	SOC_ENUM_SINGLE_CONST(UDA1380_DEEMP, 0, uda1380_deemp),
 };
 static SOC_ENUM_SINGLE_DECL(uda1380_input_sel_enum,
 			    UDA1380_ADC, 2, uda1380_input_sel);		/* SEL_MIC, SEL_LNA */
-- 
1.8.5.2



More information about the Alsa-devel mailing list