1 From e7992089f1727409eca46e6244f7dd71d4e01179 Mon Sep 17 00:00:00 2001
2 From: Nathan Chancellor <nathan@kernel.org>
3 Date: Mon, 31 Jan 2022 17:15:35 -0700
4 Subject: [PATCH] ASoC: ma120x0p: Remove unnecessary const specifier
8 sound/soc/codecs/ma120x0p.c:891:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier]
9 static const SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl,
11 ./include/sound/soc.h:362:2: note: expanded from macro 'SOC_VALUE_ENUM_SINGLE_DECL'
12 SOC_VALUE_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xmask, xtexts, xvalues)
14 ./include/sound/soc.h:359:2: note: expanded from macro 'SOC_VALUE_ENUM_DOUBLE_DECL'
15 const struct soc_enum name = SOC_VALUE_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, \
19 SOC_VALUE_ENUM_DOUBLE_DECL already has a const specifier. Remove the duplicate
20 const to clean up the warning.
22 Fixes: 42444979e710 ("Add support for all the downstream rpi sound card drivers")
23 Signed-off-by: Nathan Chancellor <nathan@kernel.org>
25 sound/soc/codecs/ma120x0p.c | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
28 --- a/sound/soc/codecs/ma120x0p.c
29 +++ b/sound/soc/codecs/ma120x0p.c
30 @@ -888,7 +888,7 @@ static const int pwr_mode_values[] = {
34 -static const SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl,
35 +static SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl,
36 ma_pm_man__a, 0, 0x70,