diff mbox

[102/102] ASoC: wm_adsp: Use SOC_ENUM_SINGLE_CONST()

Message ID 1392724308-13375-22-git-send-email-tiwai@suse.de (mailing list archive)
State Changes Requested
Delegated to: Mark Brown
Headers show

Commit Message

Takashi Iwai Feb. 18, 2014, 11:51 a.m. UTC
... for improving readability and maintainability.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/wm_adsp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index f9fd56444a14..34e79d26922b 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -273,10 +273,10 @@  static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
 }
 
 static const struct soc_enum wm_adsp_fw_enum[] = {
-	SOC_ENUM_SINGLE(0, 0, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
-	SOC_ENUM_SINGLE(0, 1, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
-	SOC_ENUM_SINGLE(0, 2, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
-	SOC_ENUM_SINGLE(0, 3, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+	SOC_ENUM_SINGLE_CONST(0, 0, wm_adsp_fw_text),
+	SOC_ENUM_SINGLE_CONST(0, 1, wm_adsp_fw_text),
+	SOC_ENUM_SINGLE_CONST(0, 2, wm_adsp_fw_text),
+	SOC_ENUM_SINGLE_CONST(0, 3, wm_adsp_fw_text),
 };
 
 const struct snd_kcontrol_new wm_adsp1_fw_controls[] = {