Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm8990: 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>

authored by

Lars-Peter Clausen and committed by
Mark Brown
dfd0edda fcbb71e9

+1 -4
+1 -4
sound/soc/codecs/wm8990.c
··· 418 418 } 419 419 420 420 /* INMIX dB values */ 421 - static const unsigned int in_mix_tlv[] = { 422 - TLV_DB_RANGE_HEAD(1), 423 - 0, 7, TLV_DB_SCALE_ITEM(-1200, 600, 0), 424 - }; 421 + static const DECLARE_TLV_DB_SCALE(in_mix_tlv, -1200, 600, 0); 425 422 426 423 /* Left In PGA Connections */ 427 424 static const struct snd_kcontrol_new wm8990_dapm_lin12_pga_controls[] = {