diff options
| author | Takashi Iwai <tiwai@suse.de> | 2014-02-18 04:46:22 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-02-22 21:58:45 -0500 |
| commit | 54db41c116c31b8829ba636895556a9fa45df987 (patch) | |
| tree | 2f6c32503cf4ea69d1b57496c1c844da28c78b70 | |
| parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
ASoC: wm8955: 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>
| -rw-r--r-- | sound/soc/codecs/wm8955.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index 82c8ba975720..d4dcaecc8a5f 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
| @@ -416,22 +416,21 @@ static const char *bass_mode_text[] = { | |||
| 416 | "Linear", "Adaptive", | 416 | "Linear", "Adaptive", |
| 417 | }; | 417 | }; |
| 418 | 418 | ||
| 419 | static const struct soc_enum bass_mode = | 419 | static SOC_ENUM_SINGLE_DECL(bass_mode, WM8955_BASS_CONTROL, 7, bass_mode_text); |
| 420 | SOC_ENUM_SINGLE(WM8955_BASS_CONTROL, 7, 2, bass_mode_text); | ||
| 421 | 420 | ||
| 422 | static const char *bass_cutoff_text[] = { | 421 | static const char *bass_cutoff_text[] = { |
| 423 | "Low", "High" | 422 | "Low", "High" |
| 424 | }; | 423 | }; |
| 425 | 424 | ||
| 426 | static const struct soc_enum bass_cutoff = | 425 | static SOC_ENUM_SINGLE_DECL(bass_cutoff, WM8955_BASS_CONTROL, 6, |
| 427 | SOC_ENUM_SINGLE(WM8955_BASS_CONTROL, 6, 2, bass_cutoff_text); | 426 | bass_cutoff_text); |
| 428 | 427 | ||
| 429 | static const char *treble_cutoff_text[] = { | 428 | static const char *treble_cutoff_text[] = { |
| 430 | "High", "Low" | 429 | "High", "Low" |
| 431 | }; | 430 | }; |
| 432 | 431 | ||
| 433 | static const struct soc_enum treble_cutoff = | 432 | static SOC_ENUM_SINGLE_DECL(treble_cutoff, WM8955_TREBLE_CONTROL, 2, |
| 434 | SOC_ENUM_SINGLE(WM8955_TREBLE_CONTROL, 6, 2, treble_cutoff_text); | 433 | treble_cutoff_text); |
| 435 | 434 | ||
| 436 | static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1); | 435 | static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1); |
| 437 | static const DECLARE_TLV_DB_SCALE(atten_tlv, -600, 600, 0); | 436 | static const DECLARE_TLV_DB_SCALE(atten_tlv, -600, 600, 0); |
