ASoC: wm5102: Use ARRAY_SIZE() for SOC_VALUE_ENUM_SINGLE()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Feb 2014 10:49:02 +0000 (11:49 +0100)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 03:02:51 +0000 (12:02 +0900)
... to make clear the meaning of the argument.

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

index ebffe81..293dffc 100644 (file)
@@ -622,13 +622,16 @@ static const unsigned int wm5102_osr_val[] = {
 
 static const struct soc_enum wm5102_hpout_osr[] = {
        SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_1L,
-                             ARIZONA_OUT1_OSR_SHIFT, 0x7, 3,
+                             ARIZONA_OUT1_OSR_SHIFT, 0x7,
+                             ARRAY_SIZE(wm5102_osr_text),
                              wm5102_osr_text, wm5102_osr_val),
        SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_2L,
-                             ARIZONA_OUT2_OSR_SHIFT, 0x7, 3,
+                             ARIZONA_OUT2_OSR_SHIFT, 0x7,
+                             ARRAY_SIZE(wm5102_osr_text),
                              wm5102_osr_text, wm5102_osr_val),
        SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_3L,
-                             ARIZONA_OUT3_OSR_SHIFT, 0x7, 3,
+                             ARIZONA_OUT3_OSR_SHIFT, 0x7,
+                             ARRAY_SIZE(wm5102_osr_text),
                              wm5102_osr_text, wm5102_osr_val),
 };