]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: Intel: atom: make sst_platform_compr_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 13 Sep 2017 18:38:36 +0000 (00:08 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 12:33:31 +0000 (13:33 +0100)
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>
sound/soc/intel/atom/sst-mfld-platform-compress.c
sound/soc/intel/atom/sst-mfld-platform.h

index 1bead81bb5106b590259780d4bcdef86dba5fc03..1dbcab5a6ff0bf1fdf509a837f5e23125abc86bd 100644 (file)
@@ -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,
index cb32cc7e5ec1f17484dc94f73a0a72cae38d9903..31a58c25472cb51be10c83143a0fac237fec9293 100644 (file)
@@ -25,7 +25,7 @@
 #include "sst-atom-controls.h"
 
 extern struct sst_device *sst;
-extern struct snd_compr_ops sst_platform_compr_ops;
+extern const struct snd_compr_ops sst_platform_compr_ops;
 
 #define SST_MONO               1
 #define SST_STEREO             2