diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 05:00:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 22:01:57 -0500 |
commit | 26d04ca8c46e3af510f0bbbe4d0b1aca8e18b393 (patch) | |
tree | a0a8cf562b5358dceeda681d5c18daf3acb604dc | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: lm49453: Use SOC_ENUM_SINGLE_DECL()
Just replace with the helper macro. No functional change at all.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/lm49453.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index e19490cfb3a8..d6f391a0f37e 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c | |||
@@ -213,15 +213,13 @@ static const char *lm49453_adcl_mux_text[] = { "MIC1", "Aux_L" }; | |||
213 | 213 | ||
214 | static const char *lm49453_adcr_mux_text[] = { "MIC2", "Aux_R" }; | 214 | static const char *lm49453_adcr_mux_text[] = { "MIC2", "Aux_R" }; |
215 | 215 | ||
216 | static const struct soc_enum lm49453_adcl_enum = | 216 | static SOC_ENUM_SINGLE_DECL(lm49453_adcl_enum, |
217 | SOC_ENUM_SINGLE(LM49453_P0_ANALOG_MIXER_ADC_REG, 0, | 217 | LM49453_P0_ANALOG_MIXER_ADC_REG, 0, |
218 | ARRAY_SIZE(lm49453_adcl_mux_text), | 218 | lm49453_adcl_mux_text); |
219 | lm49453_adcl_mux_text); | 219 | |
220 | 220 | static SOC_ENUM_SINGLE_DECL(lm49453_adcr_enum, | |
221 | static const struct soc_enum lm49453_adcr_enum = | 221 | LM49453_P0_ANALOG_MIXER_ADC_REG, 1, |
222 | SOC_ENUM_SINGLE(LM49453_P0_ANALOG_MIXER_ADC_REG, 1, | 222 | lm49453_adcr_mux_text); |
223 | ARRAY_SIZE(lm49453_adcr_mux_text), | ||
224 | lm49453_adcr_mux_text); | ||
225 | 223 | ||
226 | static const struct snd_kcontrol_new lm49453_adcl_mux_control = | 224 | static const struct snd_kcontrol_new lm49453_adcl_mux_control = |
227 | SOC_DAPM_ENUM("ADC Left Mux", lm49453_adcl_enum); | 225 | SOC_DAPM_ENUM("ADC Left Mux", lm49453_adcl_enum); |