ASoC: codecs: make snd_compr_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 16 Aug 2017 10:39:01 +0000 (16:09 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 16 Aug 2017 12:01:45 +0000 (13:01 +0100)
Make these const as they are only stored in the compr_ops field of a
snd_soc_platform_driver structure, which is of type const.
Done using Coccinelle

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs47l24.c
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c

index 47e6fddef92b8e7af04e88de54ba04f0409736f6..c1cbe23169d75555dd15fc4918505a07f601cd18 100644 (file)
@@ -1203,7 +1203,7 @@ static struct snd_soc_codec_driver soc_codec_dev_cs47l24 = {
        },
 };
 
-static struct snd_compr_ops cs47l24_compr_ops = {
+static const struct snd_compr_ops cs47l24_compr_ops = {
        .open = cs47l24_open,
        .free = wm_adsp_compr_free,
        .set_params = wm_adsp_compr_set_params,
index 1fe358e6be6126572a924911742f111bc7eb5c44..a8bdbe464f2ed51cc39b7e1b210a7b88ac46adcd 100644 (file)
@@ -2017,7 +2017,7 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
        },
 };
 
-static struct snd_compr_ops wm5102_compr_ops = {
+static const struct snd_compr_ops wm5102_compr_ops = {
        .open = wm5102_open,
        .free = wm_adsp_compr_free,
        .set_params = wm_adsp_compr_set_params,
index 1bc942152effa8f22e7202abd9d245a7ed8eb587..8aa136c28ec14dc123f65a8a007d5dbc05233aee 100644 (file)
@@ -2372,7 +2372,7 @@ static const struct snd_soc_codec_driver soc_codec_dev_wm5110 = {
        },
 };
 
-static struct snd_compr_ops wm5110_compr_ops = {
+static const struct snd_compr_ops wm5110_compr_ops = {
        .open = wm5110_open,
        .free = wm_adsp_compr_free,
        .set_params = wm_adsp_compr_set_params,