Commit 0224ba6a authored by Takashi Iwai's avatar Takashi Iwai Committed by Mark Brown

ASoC: wm5100: Use SOC_ENUM_SINGLE_DECL()

Just replace with the helper macro.  No functional change at all.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Acked-by: default avatarLiam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -506,20 +506,20 @@ static const char *wm5100_lhpf_mode_text[] = { ...@@ -506,20 +506,20 @@ static const char *wm5100_lhpf_mode_text[] = {
"Low-pass", "High-pass" "Low-pass", "High-pass"
}; };
static const struct soc_enum wm5100_lhpf1_mode = static SOC_ENUM_SINGLE_DECL(wm5100_lhpf1_mode,
SOC_ENUM_SINGLE(WM5100_HPLPF1_1, WM5100_LHPF1_MODE_SHIFT, 2, WM5100_HPLPF1_1, WM5100_LHPF1_MODE_SHIFT,
wm5100_lhpf_mode_text); wm5100_lhpf_mode_text);
static const struct soc_enum wm5100_lhpf2_mode = static SOC_ENUM_SINGLE_DECL(wm5100_lhpf2_mode,
SOC_ENUM_SINGLE(WM5100_HPLPF2_1, WM5100_LHPF2_MODE_SHIFT, 2, WM5100_HPLPF2_1, WM5100_LHPF2_MODE_SHIFT,
wm5100_lhpf_mode_text); wm5100_lhpf_mode_text);
static const struct soc_enum wm5100_lhpf3_mode = static SOC_ENUM_SINGLE_DECL(wm5100_lhpf3_mode,
SOC_ENUM_SINGLE(WM5100_HPLPF3_1, WM5100_LHPF3_MODE_SHIFT, 2, WM5100_HPLPF3_1, WM5100_LHPF3_MODE_SHIFT,
wm5100_lhpf_mode_text); wm5100_lhpf_mode_text);
static const struct soc_enum wm5100_lhpf4_mode = static SOC_ENUM_SINGLE_DECL(wm5100_lhpf4_mode,
SOC_ENUM_SINGLE(WM5100_HPLPF4_1, WM5100_LHPF4_MODE_SHIFT, 2, WM5100_HPLPF4_1, WM5100_LHPF4_MODE_SHIFT,
wm5100_lhpf_mode_text); wm5100_lhpf_mode_text);
static const struct snd_kcontrol_new wm5100_snd_controls[] = { static const struct snd_kcontrol_new wm5100_snd_controls[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment