From: Lars-Peter Clausen Date: Sun, 2 Aug 2015 15:19:59 +0000 (+0200) Subject: ASoC: wm8400: Don't use range container for TLV with one entry X-Git-Tag: v4.14-rc1~4700^2~13^2~4^5~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b65e6c7e22c93139b2b4efdd7ba6bd7bfa27fa7;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index d755508..b1d346a 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[] = {