diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:47:34 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:45:22 -0500 |
commit | 7cb5e1bb9f91bf984f26b520072a22610235d869 (patch) | |
tree | 1cbf904c28c9d11a1749c4f240beb7e17d2fa96b /sound/soc/omap/ams-delta.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
ASoC: omap: Use SOC_ENUM_SINGLE_EXT_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>
Diffstat (limited to 'sound/soc/omap/ams-delta.c')
-rw-r--r-- | sound/soc/omap/ams-delta.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/omap/ams-delta.c b/sound/soc/omap/ams-delta.c index 629446482a91..99b314d53790 100644 --- a/sound/soc/omap/ams-delta.c +++ b/sound/soc/omap/ams-delta.c | |||
@@ -194,13 +194,11 @@ static int ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol, | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | static const struct soc_enum ams_delta_audio_enum[] = { | 197 | static const SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum, |
198 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ams_delta_audio_mode), | 198 | ams_delta_audio_mode); |
199 | ams_delta_audio_mode), | ||
200 | }; | ||
201 | 199 | ||
202 | static const struct snd_kcontrol_new ams_delta_audio_controls[] = { | 200 | static const struct snd_kcontrol_new ams_delta_audio_controls[] = { |
203 | SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum[0], | 201 | SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum, |
204 | ams_delta_get_audio_mode, ams_delta_set_audio_mode), | 202 | ams_delta_get_audio_mode, ams_delta_set_audio_mode), |
205 | }; | 203 | }; |
206 | 204 | ||