Re: [PATCH] ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs
From: Krzysztof Kozlowski
Date: Fri Apr 01 2022 - 12:28:54 EST
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@xxxxxxxxx>
> ---
> 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@xxxxxxxxxx>
Best regards,
Krzysztof