[PATCH] ASoC: samsung: Constify static snd_soc_ops
Krzysztof Kozlowski
krzysztof.kozlowski at canonical.com
Thu Jul 29 08:58:54 CEST 2021
On 28/07/2021 19:25, Rikard Falkeborn wrote:
> These are only assigned to the ops field in the snd_soc_dai_link struct
> which is a pointer to const struct snd_soc_ops. 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/aries_wm8994.c | 2 +-
> sound/soc/samsung/arndale.c | 4 ++--
> sound/soc/samsung/h1940_uda1380.c | 2 +-
> sound/soc/samsung/littlemill.c | 2 +-
> sound/soc/samsung/midas_wm1811.c | 2 +-
> sound/soc/samsung/neo1973_wm8753.c | 4 ++--
> sound/soc/samsung/rx1950_uda1380.c | 2 +-
> sound/soc/samsung/smartq_wm8987.c | 2 +-
> sound/soc/samsung/smdk_wm8580.c | 2 +-
> sound/soc/samsung/smdk_wm8994.c | 2 +-
> sound/soc/samsung/smdk_wm8994pcm.c | 2 +-
> sound/soc/samsung/tm2_wm5110.c | 6 +++---
> sound/soc/samsung/tobermory.c | 2 +-
> 13 files changed, 17 insertions(+), 17 deletions(-)
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski at canonical.com>
Best regards,
Krzysztof
More information about the Alsa-devel
mailing list