From 20ea6adbf199097c4f5f591ffee088340630dae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 16 May 2022 23:40:32 +0200 Subject: bcm27xx: add support for linux v5.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones Signed-off-by: Álvaro Fernández Rojas --- ...120x0p-Remove-unnecessary-const-specifier.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 target/linux/bcm27xx/patches-5.15/950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch (limited to 'target/linux/bcm27xx/patches-5.15/950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch') diff --git a/target/linux/bcm27xx/patches-5.15/950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch b/target/linux/bcm27xx/patches-5.15/950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch new file mode 100644 index 0000000000..ac4202820e --- /dev/null +++ b/target/linux/bcm27xx/patches-5.15/950-0672-ASoC-ma120x0p-Remove-unnecessary-const-specifier.patch @@ -0,0 +1,38 @@ +From e7992089f1727409eca46e6244f7dd71d4e01179 Mon Sep 17 00:00:00 2001 +From: Nathan Chancellor +Date: Mon, 31 Jan 2022 17:15:35 -0700 +Subject: [PATCH] ASoC: ma120x0p: Remove unnecessary const specifier + +Clang warns: + + sound/soc/codecs/ma120x0p.c:891:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] + static const SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl, + ^ + ./include/sound/soc.h:362:2: note: expanded from macro 'SOC_VALUE_ENUM_SINGLE_DECL' + SOC_VALUE_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xmask, xtexts, xvalues) + ^ + ./include/sound/soc.h:359:2: note: expanded from macro 'SOC_VALUE_ENUM_DOUBLE_DECL' + const struct soc_enum name = SOC_VALUE_ENUM_DOUBLE(xreg, xshift_l, xshift_r, xmask, \ + ^ + 1 warning generated. + +SOC_VALUE_ENUM_DOUBLE_DECL already has a const specifier. Remove the duplicate +const to clean up the warning. + +Fixes: 42444979e710 ("Add support for all the downstream rpi sound card drivers") +Signed-off-by: Nathan Chancellor +--- + sound/soc/codecs/ma120x0p.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/sound/soc/codecs/ma120x0p.c ++++ b/sound/soc/codecs/ma120x0p.c +@@ -888,7 +888,7 @@ static const int pwr_mode_values[] = { + 0x70, + }; + +-static const SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl, ++static SOC_VALUE_ENUM_SINGLE_DECL(pwr_mode_ctrl, + ma_pm_man__a, 0, 0x70, + pwr_mode_texts, + pwr_mode_values); -- cgit v1.2.3