Commit daf152a2 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: wm5102: Use ARRAY_SIZE() for SOC_VALUE_ENUM_SINGLE()

... to make clear the meaning of the argument.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 2b14cd3a
...@@ -622,13 +622,16 @@ static const unsigned int wm5102_osr_val[] = { ...@@ -622,13 +622,16 @@ static const unsigned int wm5102_osr_val[] = {
static const struct soc_enum wm5102_hpout_osr[] = { static const struct soc_enum wm5102_hpout_osr[] = {
SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_1L, 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), wm5102_osr_text, wm5102_osr_val),
SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_2L, 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), wm5102_osr_text, wm5102_osr_val),
SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_3L, 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), wm5102_osr_text, wm5102_osr_val),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment