@@ -619,18 +619,14 @@ static const char * const arizona_in_dmic_osr_text[] = {
};
const struct soc_enum arizona_in_dmic_osr[] = {
- SOC_ENUM_SINGLE(ARIZONA_IN1L_CONTROL, ARIZONA_IN1_OSR_SHIFT,
- ARRAY_SIZE(arizona_in_dmic_osr_text),
- arizona_in_dmic_osr_text),
- SOC_ENUM_SINGLE(ARIZONA_IN2L_CONTROL, ARIZONA_IN2_OSR_SHIFT,
- ARRAY_SIZE(arizona_in_dmic_osr_text),
- arizona_in_dmic_osr_text),
- SOC_ENUM_SINGLE(ARIZONA_IN3L_CONTROL, ARIZONA_IN3_OSR_SHIFT,
- ARRAY_SIZE(arizona_in_dmic_osr_text),
- arizona_in_dmic_osr_text),
- SOC_ENUM_SINGLE(ARIZONA_IN4L_CONTROL, ARIZONA_IN4_OSR_SHIFT,
- ARRAY_SIZE(arizona_in_dmic_osr_text),
- arizona_in_dmic_osr_text),
+ SOC_ENUM_SINGLE_CONST(ARIZONA_IN1L_CONTROL, ARIZONA_IN1_OSR_SHIFT,
+ arizona_in_dmic_osr_text),
+ SOC_ENUM_SINGLE_CONST(ARIZONA_IN2L_CONTROL, ARIZONA_IN2_OSR_SHIFT,
+ arizona_in_dmic_osr_text),
+ SOC_ENUM_SINGLE_CONST(ARIZONA_IN3L_CONTROL, ARIZONA_IN3_OSR_SHIFT,
+ arizona_in_dmic_osr_text),
+ SOC_ENUM_SINGLE_CONST(ARIZONA_IN4L_CONTROL, ARIZONA_IN4_OSR_SHIFT,
+ arizona_in_dmic_osr_text),
};
EXPORT_SYMBOL_GPL(arizona_in_dmic_osr);
... for improving readability and maintainability. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/soc/codecs/arizona.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-)