Skip to content

Commit 8f273aa

Browse files
arndbbroonie
authored andcommitted
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: Arnd Bergmann <[email protected]> Acked-by: Charles Keepax <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 10867b3 commit 8f273aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/arizona.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ static int arizona_hw_params(struct snd_pcm_substream *substream,
17111711
return ret;
17121712
}
17131713

1714-
static const char * const arizona_dai_clk_str(int clk_id)
1714+
static const char *arizona_dai_clk_str(int clk_id)
17151715
{
17161716
switch (clk_id) {
17171717
case ARIZONA_CLK_SYSCLK:

0 commit comments

Comments
 (0)