diff mbox

[095/102] ASoC: wm8750: Use SOC_ENUM_SINGLE_CONST()

Message ID 1392724308-13375-15-git-send-email-tiwai@suse.de (mailing list archive)
State Changes Requested
Delegated to: Mark Brown
Headers show

Commit Message

Takashi Iwai Feb. 18, 2014, 11:51 a.m. UTC
... for improving readability and maintainability.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/wm8750.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 78616a638a55..c824c43fe7a5 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -114,23 +114,23 @@  static const char *wm8750_mono_mux[] = {"Stereo", "Mono (Left)",
 	"Mono (Right)", "Digital Mono"};
 
 static const struct soc_enum wm8750_enum[] = {
-SOC_ENUM_SINGLE(WM8750_BASS, 7, 2, wm8750_bass),
-SOC_ENUM_SINGLE(WM8750_BASS, 6, 2, wm8750_bass_filter),
-SOC_ENUM_SINGLE(WM8750_TREBLE, 6, 2, wm8750_treble),
-SOC_ENUM_SINGLE(WM8750_3D, 5, 2, wm8750_3d_lc),
-SOC_ENUM_SINGLE(WM8750_3D, 6, 2, wm8750_3d_uc),
-SOC_ENUM_SINGLE(WM8750_3D, 7, 2, wm8750_3d_func),
-SOC_ENUM_SINGLE(WM8750_ALC1, 7, 4, wm8750_alc_func),
-SOC_ENUM_SINGLE(WM8750_NGATE, 1, 2, wm8750_ng_type),
-SOC_ENUM_SINGLE(WM8750_LOUTM1, 0, 5, wm8750_line_mux),
-SOC_ENUM_SINGLE(WM8750_ROUTM1, 0, 5, wm8750_line_mux),
-SOC_ENUM_SINGLE(WM8750_LADCIN, 6, 4, wm8750_pga_sel), /* 10 */
-SOC_ENUM_SINGLE(WM8750_RADCIN, 6, 4, wm8750_pga_sel),
-SOC_ENUM_SINGLE(WM8750_ADCTL2, 7, 4, wm8750_out3),
-SOC_ENUM_SINGLE(WM8750_ADCIN, 8, 2, wm8750_diff_sel),
-SOC_ENUM_SINGLE(WM8750_ADCDAC, 5, 4, wm8750_adcpol),
-SOC_ENUM_SINGLE(WM8750_ADCDAC, 1, 4, wm8750_deemph),
-SOC_ENUM_SINGLE(WM8750_ADCIN, 6, 4, wm8750_mono_mux), /* 16 */
+SOC_ENUM_SINGLE_CONST(WM8750_BASS, 7, wm8750_bass),
+SOC_ENUM_SINGLE_CONST(WM8750_BASS, 6, wm8750_bass_filter),
+SOC_ENUM_SINGLE_CONST(WM8750_TREBLE, 6, wm8750_treble),
+SOC_ENUM_SINGLE_CONST(WM8750_3D, 5, wm8750_3d_lc),
+SOC_ENUM_SINGLE_CONST(WM8750_3D, 6, wm8750_3d_uc),
+SOC_ENUM_SINGLE_CONST(WM8750_3D, 7, wm8750_3d_func),
+SOC_ENUM_SINGLE_CONST(WM8750_ALC1, 7, wm8750_alc_func),
+SOC_ENUM_SINGLE_CONST(WM8750_NGATE, 1, wm8750_ng_type),
+SOC_ENUM_SINGLE_CONST(WM8750_LOUTM1, 0, wm8750_line_mux),
+SOC_ENUM_SINGLE_CONST(WM8750_ROUTM1, 0, wm8750_line_mux),
+SOC_ENUM_SINGLE_CONST(WM8750_LADCIN, 6, wm8750_pga_sel), /* 10 */
+SOC_ENUM_SINGLE_CONST(WM8750_RADCIN, 6, wm8750_pga_sel),
+SOC_ENUM_SINGLE_CONST(WM8750_ADCTL2, 7, wm8750_out3),
+SOC_ENUM_SINGLE_CONST(WM8750_ADCIN, 8, wm8750_diff_sel),
+SOC_ENUM_SINGLE_CONST(WM8750_ADCDAC, 5, wm8750_adcpol),
+SOC_ENUM_SINGLE_CONST(WM8750_ADCDAC, 1, wm8750_deemph),
+SOC_ENUM_SINGLE_CONST(WM8750_ADCIN, 6, wm8750_mono_mux), /* 16 */
 
 };