diff mbox

[1/6] ASoC: wm8804: Drop dublicate const

Message ID 1437987388-9706-2-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit c8a6b92be8516c92cf46bc127fa0adf53a05d31c
Headers show

Commit Message

Lars-Peter Clausen July 27, 2015, 8:56 a.m. UTC
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>
---
 sound/soc/codecs/wm8804.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Charles Keepax July 27, 2015, 7:53 p.m. UTC | #1
On Mon, Jul 27, 2015 at 10:56:23AM +0200, Lars-Peter Clausen wrote:
> 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>

Thanks,
Charles
diff mbox

Patch

diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c
index c195c2e..8d91470 100644
--- a/sound/soc/codecs/wm8804.c
+++ b/sound/soc/codecs/wm8804.c
@@ -98,7 +98,7 @@  WM8804_REGULATOR_EVENT(0)
 WM8804_REGULATOR_EVENT(1)
 
 static const char *txsrc_text[] = { "S/PDIF RX", "AIF" };
-static const SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
+static SOC_ENUM_SINGLE_DECL(txsrc, WM8804_SPDTX4, 6, txsrc_text);
 
 static const struct snd_kcontrol_new wm8804_tx_source_mux[] = {
 	SOC_DAPM_ENUM_EXT("Input Source", txsrc,