summaryrefslogtreecommitdiff
path: root/sound/soc/intel/atom/sst-mfld-platform-compress.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-13 21:38:36 +0300
committerMark Brown <broonie@kernel.org>2017-09-19 15:33:31 +0300
commit86cb5dee237be6cf6c432299b829a5e85ed35029 (patch)
treeacb034d739b580dc8ef0a31bf24a3324fc3dbec1 /sound/soc/intel/atom/sst-mfld-platform-compress.c
parentae09a4783b9caf9307f303ef039f8297ce0371fe (diff)
downloadlinux-86cb5dee237be6cf6c432299b829a5e85ed35029.tar.xz
ASoC: Intel: atom: make sst_platform_compr_ops const
Make this const as it not modified in the file referencing it. It only stored in the const field 'compr_ops' of a snd_soc_platform_driver structure. Also, add const to the declaration in the header file. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom/sst-mfld-platform-compress.c')
-rw-r--r--sound/soc/intel/atom/sst-mfld-platform-compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst-mfld-platform-compress.c b/sound/soc/intel/atom/sst-mfld-platform-compress.c
index 1bead81bb510..1dbcab5a6ff0 100644
--- a/sound/soc/intel/atom/sst-mfld-platform-compress.c
+++ b/sound/soc/intel/atom/sst-mfld-platform-compress.c
@@ -259,7 +259,7 @@ static int sst_platform_compr_set_metadata(struct snd_compr_stream *cstream,
return stream->compr_ops->set_metadata(sst->dev, stream->id, metadata);
}
-struct snd_compr_ops sst_platform_compr_ops = {
+const struct snd_compr_ops sst_platform_compr_ops = {
.open = sst_platform_compr_open,
.free = sst_platform_compr_free,