bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch
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
5
6 Clang warns:
7
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,
10 ^
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)
13 ^
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, \
16 ^
17 1 warning generated.
18
19 SOC_VALUE_ENUM_DOUBLE_DECL already has a const specifier. Remove the duplicate
20 const to clean up the warning.
21
22 Fixes: 42444979e710 ("Add support for all the downstream rpi sound card drivers")
23 Signed-off-by: Nathan Chancellor <nathan@kernel.org>
24 ---
25 sound/soc/codecs/ma120x0p.c | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
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[] = {
31 0x70,
32 };
33
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,
37 pwr_mode_texts,
38 pwr_mode_values);