lkml.org 
[lkml]   [2022]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs
From
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@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@linaro.org>

Best regards,
Krzysztof

\
 
 \ /
  Last update: 2022-04-01 18:29    [W:0.068 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site