diff options
author | Takashi Iwai <[email protected]> | 2014-02-18 10:47:34 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2014-02-23 11:45:22 +0900 |
commit | 7cb5e1bb9f91bf984f26b520072a22610235d869 (patch) | |
tree | 1cbf904c28c9d11a1749c4f240beb7e17d2fa96b | |
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 <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Acked-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
-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, return 0; } -static const struct soc_enum ams_delta_audio_enum[] = { - SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ams_delta_audio_mode), - ams_delta_audio_mode), -}; +static const SOC_ENUM_SINGLE_EXT_DECL(ams_delta_audio_enum, + ams_delta_audio_mode); static const struct snd_kcontrol_new ams_delta_audio_controls[] = { - SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum[0], + SOC_ENUM_EXT("Audio Mode", ams_delta_audio_enum, ams_delta_get_audio_mode, ams_delta_set_audio_mode), }; |