ASoC: codecs: wsa881x: constify static struct snd_soc_dai_ops
authorYe Bin <yebin10@huawei.com>
Thu, 8 Apr 2021 06:27:00 +0000 (14:27 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 8 Apr 2021 14:21:49 +0000 (15:21 +0100)
commitf985838003ee618daba7a38da3efe27c639575e2
tree02e7c5c2855d2e814d7232271eea9e7d4f382709
parent8361c6da77b7d267707da9ff3b94458e018dd3da
ASoC: codecs: wsa881x: constify static struct snd_soc_dai_ops

The snd_soc_dai_ops structures is only stored in the ops field of a
snd_soc_dai_driver structure, so make the snd_soc_dai_ops structure
const to allow the compiler to put it in read-only memory.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link: https://lore.kernel.org/r/20210408062700.803792-1-yebin10@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wsa881x.c