提交 8f273aac 编写于 作者: A Arnd Bergmann 提交者: Mark Brown

ASoC: remove one extraneous 'const'

A recent commit made a few arrays 'const', but also added the
same attribute to a function return type, where it makes no
sense, and we get a warning when building with W=1:

sound/soc/codecs/arizona.c:1725:27: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
 static const char * const arizona_dai_clk_str(int clk_id)

This removes it again.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 10867b32
...@@ -1711,7 +1711,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream, ...@@ -1711,7 +1711,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
return ret; return ret;
} }
static const char * const arizona_dai_clk_str(int clk_id) static const char *arizona_dai_clk_str(int clk_id)
{ {
switch (clk_id) { switch (clk_id) {
case ARIZONA_CLK_SYSCLK: case ARIZONA_CLK_SYSCLK:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册