[PATCH] ASoC: fsl: constify static snd_soc_dai_ops structs
Shengjiu Wang
shengjiu.wang at gmail.com
Sun Feb 7 11:37:44 CET 2021
On Sun, Feb 7, 2021 at 6:58 AM Rikard Falkeborn
<rikard.falkeborn at gmail.com> wrote:
>
> The only usage of these is to assign their address to the 'ops' field in
> the snd_soc_dai_driver struct, which is a pointer to const. Make them
> const to allow the compiler to put them in read-only memory.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
Acked-by: Shengjiu Wang <shengjiu.wang at gmail.com>
More information about the Alsa-devel
mailing list