diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-07-13 01:26:06 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-07-17 15:22:12 +0100 |
commit | c115a3178b1dfacd57b643934bb6bbbd1a9557f0 (patch) | |
tree | 60d6b8ef9862e6e9dd52f3f0bd2ae4f21e190716 /sound/soc/intel/atom | |
parent | 82e2b1e081906d3d86c4597250ab2939b209079f (diff) | |
download | linux-stable-c115a3178b1dfacd57b643934bb6bbbd1a9557f0.tar.gz linux-stable-c115a3178b1dfacd57b643934bb6bbbd1a9557f0.tar.bz2 linux-stable-c115a3178b1dfacd57b643934bb6bbbd1a9557f0.zip |
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: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom')
-rw-r--r-- | sound/soc/intel/atom/sst-mfld-platform-pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c index b082b31023d5..49c7b88b5bdc 100644 --- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c +++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c @@ -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, .shutdown = sst_media_close, .prepare = sst_media_prepare, @@ -480,11 +480,11 @@ static struct snd_soc_dai_ops sst_media_dai_ops = { .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, }; -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, .hw_params = sst_be_hw_params, .set_fmt = sst_set_format, |