projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daf152a
)
ASoC: wm8997: Use ARRAY_SIZE() for SOC_VALUE_ENUM_SINGLE()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 18 Feb 2014 10:49:56 +0000
(11:49 +0100)
committer
Mark Brown
<broonie@linaro.org>
Sun, 23 Feb 2014 03:03:08 +0000
(12:03 +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/wm8997.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8997.c
b/sound/soc/codecs/wm8997.c
index 6107108228b6d6df0951e70fdea14d6bf60f9dbc..4e6442ce9a2aff7c1aac9b5ff0e6b148586f1212 100644
(file)
--- a/
sound/soc/codecs/wm8997.c
+++ b/
sound/soc/codecs/wm8997.c
@@
-123,10
+123,12
@@
static const unsigned int wm8997_osr_val[] = {
static const struct soc_enum wm8997_hpout_osr[] = {
SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_1L,
- ARIZONA_OUT1_OSR_SHIFT, 0x7, 3,
+ ARIZONA_OUT1_OSR_SHIFT, 0x7,
+ ARRAY_SIZE(wm8997_osr_text),
wm8997_osr_text, wm8997_osr_val),
SOC_VALUE_ENUM_SINGLE(ARIZONA_OUTPUT_PATH_CONFIG_3L,
- ARIZONA_OUT3_OSR_SHIFT, 0x7, 3,
+ ARIZONA_OUT3_OSR_SHIFT, 0x7,
+ ARRAY_SIZE(wm8997_osr_text),
wm8997_osr_text, wm8997_osr_val),
};