mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
ASoC: wm5100: 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: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
38dbfb59d1
commit
0224ba6a01
@ -506,21 +506,21 @@ static const char *wm5100_lhpf_mode_text[] = {
|
||||
"Low-pass", "High-pass"
|
||||
};
|
||||
|
||||
static const struct soc_enum wm5100_lhpf1_mode =
|
||||
SOC_ENUM_SINGLE(WM5100_HPLPF1_1, WM5100_LHPF1_MODE_SHIFT, 2,
|
||||
wm5100_lhpf_mode_text);
|
||||
static SOC_ENUM_SINGLE_DECL(wm5100_lhpf1_mode,
|
||||
WM5100_HPLPF1_1, WM5100_LHPF1_MODE_SHIFT,
|
||||
wm5100_lhpf_mode_text);
|
||||
|
||||
static const struct soc_enum wm5100_lhpf2_mode =
|
||||
SOC_ENUM_SINGLE(WM5100_HPLPF2_1, WM5100_LHPF2_MODE_SHIFT, 2,
|
||||
wm5100_lhpf_mode_text);
|
||||
static SOC_ENUM_SINGLE_DECL(wm5100_lhpf2_mode,
|
||||
WM5100_HPLPF2_1, WM5100_LHPF2_MODE_SHIFT,
|
||||
wm5100_lhpf_mode_text);
|
||||
|
||||
static const struct soc_enum wm5100_lhpf3_mode =
|
||||
SOC_ENUM_SINGLE(WM5100_HPLPF3_1, WM5100_LHPF3_MODE_SHIFT, 2,
|
||||
wm5100_lhpf_mode_text);
|
||||
static SOC_ENUM_SINGLE_DECL(wm5100_lhpf3_mode,
|
||||
WM5100_HPLPF3_1, WM5100_LHPF3_MODE_SHIFT,
|
||||
wm5100_lhpf_mode_text);
|
||||
|
||||
static const struct soc_enum wm5100_lhpf4_mode =
|
||||
SOC_ENUM_SINGLE(WM5100_HPLPF4_1, WM5100_LHPF4_MODE_SHIFT, 2,
|
||||
wm5100_lhpf_mode_text);
|
||||
static SOC_ENUM_SINGLE_DECL(wm5100_lhpf4_mode,
|
||||
WM5100_HPLPF4_1, WM5100_LHPF4_MODE_SHIFT,
|
||||
wm5100_lhpf_mode_text);
|
||||
|
||||
static const struct snd_kcontrol_new wm5100_snd_controls[] = {
|
||||
SOC_SINGLE("IN1 High Performance Switch", WM5100_IN1L_CONTROL,
|
||||
|
Loading…
Reference in New Issue
Block a user