diff mbox

[087/102] ASoC: ssm2602: Use SOC_ENUM_SINGLE_CONST()

Message ID 1392724308-13375-7-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/ssm2602.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index e32b82ff6304..f85aef825965 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -81,10 +81,8 @@  static const char *ssm2602_input_select[] = {
 static const char *ssm2602_deemph[] = {"None", "32Khz", "44.1Khz", "48Khz"};
 
 static const struct soc_enum ssm2602_enum[] = {
-	SOC_ENUM_SINGLE(SSM2602_APANA, 2, ARRAY_SIZE(ssm2602_input_select),
-			ssm2602_input_select),
-	SOC_ENUM_SINGLE(SSM2602_APDIGI, 1, ARRAY_SIZE(ssm2602_deemph),
-			ssm2602_deemph),
+	SOC_ENUM_SINGLE_CONST(SSM2602_APANA, 2, ssm2602_input_select),
+	SOC_ENUM_SINGLE_CONST(SSM2602_APDIGI, 1, ssm2602_deemph),
 };
 
 static const unsigned int ssm260x_outmix_tlv[] = {