@@ -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[] = {
... 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(-)