Re: [PATCH 1/2] ASoC: remove one extraneous 'const'

From: Charles Keepax
Date: Tue Jun 14 2016 - 08:35:33 EST


On Tue, Jun 14, 2016 at 12:17:52PM +0200, Arnd Bergmann wrote:
> 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@xxxxxxxx>
> Fixes: a3178a3ed798 ("ASoC: arizona: Add a couple of missing consts")
> ---

Oops.. got a bit overzealous there, thanks for fixing.

Acked-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles