ASoC: remove one extraneous 'const'
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Jun 2016 10:17:52 +0000 (12:17 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jun 2016 13:46:36 +0000 (14:46 +0100)
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 <arnd@arndb.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c

index 73eab6c..1ff0ed2 100644 (file)
@@ -1711,7 +1711,7 @@ restore_aif:
        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) {
        case ARIZONA_CLK_SYSCLK: