Commit c115a317 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mark Brown

ASoC: Intel: Atom: constify snd_soc_dai_ops structures

These structures are only stored in the ops field of a snd_soc_dai_driver
structure. That field is declared const, so snd_soc_dai_ops structures
that have this property can be declared as const also.
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 82e2b1e0
...@@ -471,7 +471,7 @@ static void sst_disable_ssp(struct snd_pcm_substream *substream, ...@@ -471,7 +471,7 @@ static void sst_disable_ssp(struct snd_pcm_substream *substream,
} }
} }
static struct snd_soc_dai_ops sst_media_dai_ops = { static const struct snd_soc_dai_ops sst_media_dai_ops = {
.startup = sst_media_open, .startup = sst_media_open,
.shutdown = sst_media_close, .shutdown = sst_media_close,
.prepare = sst_media_prepare, .prepare = sst_media_prepare,
...@@ -480,11 +480,11 @@ static struct snd_soc_dai_ops sst_media_dai_ops = { ...@@ -480,11 +480,11 @@ static struct snd_soc_dai_ops sst_media_dai_ops = {
.mute_stream = sst_media_digital_mute, .mute_stream = sst_media_digital_mute,
}; };
static struct snd_soc_dai_ops sst_compr_dai_ops = { static const struct snd_soc_dai_ops sst_compr_dai_ops = {
.mute_stream = sst_media_digital_mute, .mute_stream = sst_media_digital_mute,
}; };
static struct snd_soc_dai_ops sst_be_dai_ops = { static const struct snd_soc_dai_ops sst_be_dai_ops = {
.startup = sst_enable_ssp, .startup = sst_enable_ssp,
.hw_params = sst_be_hw_params, .hw_params = sst_be_hw_params,
.set_fmt = sst_set_format, .set_fmt = sst_set_format,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment