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

ASoC: wm8804: Drop duplicate const

SOC_ENUM_SINGLE_DECL() already includes a const, drop the extra const.
Fixes the following sparse warning:

sound/soc/codecs/wm8804.c:101:14: warning: duplicate const

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Lars-Peter Clausen and committed by
Mark Brown
c8a6b92b d770e558

+1 -1
+1 -1
sound/soc/codecs/wm8804.c
··· 98 98 WM8804_REGULATOR_EVENT(1) 99 99 100 100 static const char *txsrc_text[] = { "S/PDIF RX", "AIF" }; 101 - static const SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text); 101 + static SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text); 102 102 103 103 static const struct snd_kcontrol_new wm8804_tx_source_mux[] = { 104 104 SOC_DAPM_ENUM_EXT("Input Source", txsrc,