ASoC: codecs: constify snd_soc_dai_ops structures
snd_soc_dai_ops are not supposed to change at runtime. All functions working with snd_soc_dai_ops provided by <sound/soc-dai.h> work with const snd_soc_dai_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Este cometimento está contido em:

cometido por
Mark Brown

ascendente
6e37f933ed
cometimento
eb59d73cb5
@@ -350,7 +350,7 @@ static int max9867_dai_set_fmt(struct snd_soc_dai *codec_dai,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_soc_dai_ops max9867_dai_ops = {
|
||||
static const struct snd_soc_dai_ops max9867_dai_ops = {
|
||||
.set_fmt = max9867_dai_set_fmt,
|
||||
.set_sysclk = max9867_set_dai_sysclk,
|
||||
.prepare = max9867_prepare,
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador