ASoC: codecs: make snd_soc_platform_driver const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 14 Aug 2017 11:38:40 +0000 (17:08 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:22:07 +0000 (17:22 +0100)
Make these const as they are either passed as the 2nd argument to the
function devm_snd_soc_register_platform or snd_soc_register_platform,
and the arguments are 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/rt5514-spi.c
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c

index d323caa9c8162d6101f6a3827cc25c558a6dfd4d..505dbc9d73cfe30cef585a9c8ba01e4aa5c2f711 100644 (file)
@@ -1213,7 +1213,7 @@ static struct snd_compr_ops cs47l24_compr_ops = {
        .copy = wm_adsp_compr_copy,
 };
 
-static struct snd_soc_platform_driver cs47l24_compr_platform = {
+static const struct snd_soc_platform_driver cs47l24_compr_platform = {
        .compr_ops = &cs47l24_compr_ops,
 };
 
index 7ed62e8c80b4bfe98093f9166e68683a051dccdf..87a587fa90fe81ecfa019fcf805a425f648f6836 100644 (file)
@@ -260,7 +260,7 @@ static int rt5514_spi_pcm_probe(struct snd_soc_platform *platform)
        return 0;
 }
 
-static struct snd_soc_platform_driver rt5514_spi_platform = {
+static const struct snd_soc_platform_driver rt5514_spi_platform = {
        .probe = rt5514_spi_pcm_probe,
        .ops = &rt5514_spi_pcm_ops,
 };
index 1fe358e6be6126572a924911742f111bc7eb5c44..f5006923be2e21549ab031c6fb3fc21aed9c2e29 100644 (file)
@@ -2027,7 +2027,7 @@ static struct snd_compr_ops wm5102_compr_ops = {
        .copy = wm_adsp_compr_copy,
 };
 
-static struct snd_soc_platform_driver wm5102_compr_platform = {
+static const struct snd_soc_platform_driver wm5102_compr_platform = {
        .compr_ops = &wm5102_compr_ops,
 };
 
index 1bc942152effa8f22e7202abd9d245a7ed8eb587..d6fae1397ce26860b8ddd2bbd6595b8ab862394c 100644 (file)
@@ -2382,7 +2382,7 @@ static struct snd_compr_ops wm5110_compr_ops = {
        .copy = wm_adsp_compr_copy,
 };
 
-static struct snd_soc_platform_driver wm5110_compr_platform = {
+static const struct snd_soc_platform_driver wm5110_compr_platform = {
        .compr_ops = &wm5110_compr_ops,
 };