[PATCH] ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Fri Apr 1 09:02:03 PDT 2022


On 30/03/2022 22:42, Rikard Falkeborn wrote:
> These structs only have their address assigned to the
> dapm_{routes,widget} fields in the snd_soc_card struct,
> both which are pointers to const data. Make them const to
> allow the compiler to put them in read-only memory.
> 
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
> ---
>  sound/soc/samsung/bells.c      | 4 ++--
>  sound/soc/samsung/littlemill.c | 4 ++--
>  sound/soc/samsung/lowland.c    | 4 ++--
>  sound/soc/samsung/speyside.c   | 4 ++--
>  sound/soc/samsung/tobermory.c  | 4 ++--
>  5 files changed, 10 insertions(+), 10 deletions(-)
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list