diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-08-02 18:19:59 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-05 15:23:56 +0300 |
commit | 0b65e6c7e22c93139b2b4efdd7ba6bd7bfa27fa7 (patch) | |
tree | f8372241a0a75b8688a064734f593fe97e03f8f7 /sound/soc/codecs/wm8400.c | |
parent | d3d383ba8b49fbb2024851442e09a104b1f030fe (diff) | |
download | linux-0b65e6c7e22c93139b2b4efdd7ba6bd7bfa27fa7.tar.xz |
ASoC: wm8400: Don't use range container for TLV with one entry
For TLVs with only a single entry it is not necessary to use a range
container. Use DECLARE_TLV_DB_SCALE() directly instead of a combination of
TLV_DB_RANGE_HEAD() and TLV_DB_SCALE_ITEM().
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8400.c')
-rw-r--r-- | sound/soc/codecs/wm8400.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index d7555085e7f4..b1d346aa4696 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c @@ -370,10 +370,7 @@ static int outmixer_event (struct snd_soc_dapm_widget *w, } /* INMIX dB values */ -static const unsigned int in_mix_tlv[] = { - TLV_DB_RANGE_HEAD(1), - 0,7, TLV_DB_SCALE_ITEM(-1200, 600, 0), -}; +static const DECLARE_TLV_DB_SCALE(in_mix_tlv, -1200, 600, 0); /* Left In PGA Connections */ static const struct snd_kcontrol_new wm8400_dapm_lin12_pga_controls[] = { |