Messages in this thread | | | Date | Fri, 1 Apr 2022 18:02:03 +0200 | Subject | Re: [PATCH] ASoC: samsung: Constify snd_soc_dapm_{route,widget} structs | From | Krzysztof Kozlowski <> |
| |
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
| |