]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt1015: Remove unnecessary const
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 24 Jan 2020 15:57:50 +0000 (08:57 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jan 2020 16:53:57 +0000 (16:53 +0000)
commit862b7ca324626fdd398c21f788db5ce39084ffc3
treeaa0eb701da7eb35ff0b2e7f72cc6d24d1809a6c8
parent001f251aa094106f93f9a9638987fc48775f3f50
ASoC: rt1015: Remove unnecessary const

Clang warns:

../sound/soc/codecs/rt1015.c:392:14: warning: duplicate 'const'
declaration specifier [-Wduplicate-decl-specifier]
static const SOC_ENUM_SINGLE_DECL(rt1015_boost_mode_enum, 0, 0,
             ^
../include/sound/soc.h:355:2: note: expanded from macro
'SOC_ENUM_SINGLE_DECL'
        SOC_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xtexts)
        ^
../include/sound/soc.h:352:2: note: expanded from macro
'SOC_ENUM_DOUBLE_DECL'
        const struct soc_enum name = SOC_ENUM_DOUBLE(xreg, xshift_l, xshift_r, \
        ^
1 warning generated.

Remove the const after static to fix it.

Fixes: 8a230ecaa1bc ("ASoC: rt1015: add rt1015 amplifier driver")
Link: https://github.com/ClangBuiltLinux/linux/issues/845
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Link: https://lore.kernel.org/r/20200124155750.33753-1-natechancellor@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1015.c