OSDN Git Service

ASoC: amd: acp-rt5645: Constify static snd_soc_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 4 Oct 2021 22:45:14 +0000 (00:45 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 5 Oct 2021 12:09:58 +0000 (13:09 +0100)
commitd54aa2aeaa70237f4482336e86195235ea1de032
tree68558ef72287b4b90b018493ead09c99ff32ac01
parent2a04151ff95a3c430150064b0c8beb1981f81187
ASoC: amd: acp-rt5645: Constify static snd_soc_ops

The struct cz_aif1_ops is only assigned to the ops field in the
snd_soc_dai_link struct which is a pointer to const struct snd_soc_ops.
Make it const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20211004224514.8783-1-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-rt5645.c