Re: [PATCH] pinctrl: qcom: fix 'const' pointer handling

From: Linus Walleij
Date: Wed Oct 03 2018 - 03:13:13 EST


On Tue, Oct 2, 2018 at 11:15 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:

> The 'tiles' array is initialized to a constant pointers to constant
> strings, but the declaration is only half as constant:
>
> drivers/pinctrl/qcom/pinctrl-qcs404.c:1660:11: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
> drivers/pinctrl/qcom/pinctrl-sdm660.c:1417:11: error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
>
> Let's make it more constant.
>
> Fixes: 22eb8301dbc1 ("pinctrl: qcom: Add qcs404 pinctrl driver")
> Fixes: a46d5e98190d ("pinctrl: qcom: Support dispersed tiles")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Patch applied with Bjorn's ACK.

Yours,
Linus Walleij