aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-08-31 17:52:27 -0400
committerMark Brown <broonie@kernel.org>2016-09-01 15:55:31 -0400
commitf802d6c020658b5dce1732da0d5999a1a65afdd6 (patch)
treede881a189a3ea38294e52cad844531cbba0d41b5
parent2c452dd8af9da98b4b0ae1f12f8059160c7b11b5 (diff)
ASoC: constify snd_soc_codec_driver structures
Check for snd_soc_codec_driver structures that are only passed to snd_soc_register_codec or memcpy (2nd arg), for which the corresponding parameters are declared const. Declare as const snd_soc_codec_driver structures that have these properties. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r disable optional_qualifier@ identifier i; position p; @@ static struct snd_soc_codec_driver i@p = { ... }; @ok@ identifier r.i; expression e1,e2,e3; position p; @@ ( snd_soc_register_codec(e1,&i@p,e2,e3) | memcpy(e1,&i@p,e2) ) @bad@ position p != {r.p,ok.p}; identifier r.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r.i; @@ static +const struct snd_soc_codec_driver i = { ... }; // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/wm0010.c2
-rw-r--r--sound/soc/codecs/wm1250-ev1.c2
-rw-r--r--sound/soc/codecs/wm2000.c2
-rw-r--r--sound/soc/codecs/wm2200.c2
-rw-r--r--sound/soc/codecs/wm5100.c2
-rw-r--r--sound/soc/codecs/wm5102.c2
-rw-r--r--sound/soc/codecs/wm5110.c2
-rw-r--r--sound/soc/codecs/wm8350.c2
-rw-r--r--sound/soc/codecs/wm8400.c2
-rw-r--r--sound/soc/codecs/wm8510.c2
-rw-r--r--sound/soc/codecs/wm8523.c2
-rw-r--r--sound/soc/codecs/wm8580.c2
-rw-r--r--sound/soc/codecs/wm8711.c2
-rw-r--r--sound/soc/codecs/wm8727.c2
-rw-r--r--sound/soc/codecs/wm8728.c2
-rw-r--r--sound/soc/codecs/wm8731.c2
-rw-r--r--sound/soc/codecs/wm8737.c2
-rw-r--r--sound/soc/codecs/wm8741.c2
-rw-r--r--sound/soc/codecs/wm8750.c2
-rw-r--r--sound/soc/codecs/wm8753.c2
-rw-r--r--sound/soc/codecs/wm8770.c2
-rw-r--r--sound/soc/codecs/wm8776.c2
-rw-r--r--sound/soc/codecs/wm8782.c2
-rw-r--r--sound/soc/codecs/wm8900.c2
-rw-r--r--sound/soc/codecs/wm8903.c2
-rw-r--r--sound/soc/codecs/wm8904.c2
-rw-r--r--sound/soc/codecs/wm8940.c2
-rw-r--r--sound/soc/codecs/wm8955.c2
-rw-r--r--sound/soc/codecs/wm8960.c2
-rw-r--r--sound/soc/codecs/wm8961.c2
-rw-r--r--sound/soc/codecs/wm8962.c2
-rw-r--r--sound/soc/codecs/wm8971.c2
-rw-r--r--sound/soc/codecs/wm8974.c2
-rw-r--r--sound/soc/codecs/wm8978.c2
-rw-r--r--sound/soc/codecs/wm8983.c2
-rw-r--r--sound/soc/codecs/wm8985.c2
-rw-r--r--sound/soc/codecs/wm8990.c2
-rw-r--r--sound/soc/codecs/wm8991.c2
-rw-r--r--sound/soc/codecs/wm8993.c2
-rw-r--r--sound/soc/codecs/wm8994.c2
-rw-r--r--sound/soc/codecs/wm8996.c2
-rw-r--r--sound/soc/codecs/wm8997.c2
-rw-r--r--sound/soc/codecs/wm8998.c2
-rw-r--r--sound/soc/codecs/wm9081.c2
-rw-r--r--sound/soc/codecs/wm9090.c2
-rw-r--r--sound/soc/codecs/wm9705.c2
-rw-r--r--sound/soc/codecs/wm9712.c2
-rw-r--r--sound/soc/codecs/wm9713.c2
48 files changed, 48 insertions, 48 deletions
diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 4ef6919ab1a1..0eb5dcf4c29d 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -789,7 +789,7 @@ static int wm0010_set_sysclk(struct snd_soc_codec *codec, int source,
789 789
790static int wm0010_probe(struct snd_soc_codec *codec); 790static int wm0010_probe(struct snd_soc_codec *codec);
791 791
792static struct snd_soc_codec_driver soc_codec_dev_wm0010 = { 792static const struct snd_soc_codec_driver soc_codec_dev_wm0010 = {
793 .probe = wm0010_probe, 793 .probe = wm0010_probe,
794 .set_bias_level = wm0010_set_bias_level, 794 .set_bias_level = wm0010_set_bias_level,
795 .set_sysclk = wm0010_set_sysclk, 795 .set_sysclk = wm0010_set_sysclk,
diff --git a/sound/soc/codecs/wm1250-ev1.c b/sound/soc/codecs/wm1250-ev1.c
index caf501227265..cf5f0580df6a 100644
--- a/sound/soc/codecs/wm1250-ev1.c
+++ b/sound/soc/codecs/wm1250-ev1.c
@@ -141,7 +141,7 @@ static struct snd_soc_dai_driver wm1250_ev1_dai = {
141 .ops = &wm1250_ev1_ops, 141 .ops = &wm1250_ev1_ops,
142}; 142};
143 143
144static struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = { 144static const struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = {
145 .component_driver = { 145 .component_driver = {
146 .dapm_widgets = wm1250_ev1_dapm_widgets, 146 .dapm_widgets = wm1250_ev1_dapm_widgets,
147 .num_dapm_widgets = ARRAY_SIZE(wm1250_ev1_dapm_widgets), 147 .num_dapm_widgets = ARRAY_SIZE(wm1250_ev1_dapm_widgets),
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c
index 1ebaf99a1907..e553f7fd7e63 100644
--- a/sound/soc/codecs/wm2000.c
+++ b/sound/soc/codecs/wm2000.c
@@ -799,7 +799,7 @@ static int wm2000_remove(struct snd_soc_codec *codec)
799 return wm2000_anc_transition(wm2000, ANC_OFF); 799 return wm2000_anc_transition(wm2000, ANC_OFF);
800} 800}
801 801
802static struct snd_soc_codec_driver soc_codec_dev_wm2000 = { 802static const struct snd_soc_codec_driver soc_codec_dev_wm2000 = {
803 .probe = wm2000_probe, 803 .probe = wm2000_probe,
804 .remove = wm2000_remove, 804 .remove = wm2000_remove,
805 .suspend = wm2000_suspend, 805 .suspend = wm2000_suspend,
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c
index d913d0e3e9be..606bf88abfc4 100644
--- a/sound/soc/codecs/wm2200.c
+++ b/sound/soc/codecs/wm2200.c
@@ -2103,7 +2103,7 @@ static struct snd_soc_dai_driver wm2200_dai = {
2103 .ops = &wm2200_dai_ops, 2103 .ops = &wm2200_dai_ops,
2104}; 2104};
2105 2105
2106static struct snd_soc_codec_driver soc_codec_wm2200 = { 2106static const struct snd_soc_codec_driver soc_codec_wm2200 = {
2107 .probe = wm2200_probe, 2107 .probe = wm2200_probe,
2108 2108
2109 .idle_bias_off = true, 2109 .idle_bias_off = true,
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c
index 8cbdf1701222..278467d3b1ac 100644
--- a/sound/soc/codecs/wm5100.c
+++ b/sound/soc/codecs/wm5100.c
@@ -2381,7 +2381,7 @@ static int wm5100_remove(struct snd_soc_codec *codec)
2381 return 0; 2381 return 0;
2382} 2382}
2383 2383
2384static struct snd_soc_codec_driver soc_codec_dev_wm5100 = { 2384static const struct snd_soc_codec_driver soc_codec_dev_wm5100 = {
2385 .probe = wm5100_probe, 2385 .probe = wm5100_probe,
2386 .remove = wm5100_remove, 2386 .remove = wm5100_remove,
2387 2387
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index 1295978e8360..05bb3cb02e70 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -1990,7 +1990,7 @@ static struct regmap *wm5102_get_regmap(struct device *dev)
1990 return priv->core.arizona->regmap; 1990 return priv->core.arizona->regmap;
1991} 1991}
1992 1992
1993static struct snd_soc_codec_driver soc_codec_dev_wm5102 = { 1993static const struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
1994 .probe = wm5102_codec_probe, 1994 .probe = wm5102_codec_probe,
1995 .remove = wm5102_codec_remove, 1995 .remove = wm5102_codec_remove,
1996 .get_regmap = wm5102_get_regmap, 1996 .get_regmap = wm5102_get_regmap,
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index 3e7f873f2709..e22d3dcb6fd7 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -2347,7 +2347,7 @@ static struct regmap *wm5110_get_regmap(struct device *dev)
2347 return priv->core.arizona->regmap; 2347 return priv->core.arizona->regmap;
2348} 2348}
2349 2349
2350static struct snd_soc_codec_driver soc_codec_dev_wm5110 = { 2350static const struct snd_soc_codec_driver soc_codec_dev_wm5110 = {
2351 .probe = wm5110_codec_probe, 2351 .probe = wm5110_codec_probe,
2352 .remove = wm5110_codec_remove, 2352 .remove = wm5110_codec_remove,
2353 .get_regmap = wm5110_get_regmap, 2353 .get_regmap = wm5110_get_regmap,
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 18bc4ca07fcb..2efc5b41ad0f 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -1587,7 +1587,7 @@ static struct regmap *wm8350_get_regmap(struct device *dev)
1587 return wm8350->regmap; 1587 return wm8350->regmap;
1588} 1588}
1589 1589
1590static struct snd_soc_codec_driver soc_codec_dev_wm8350 = { 1590static const struct snd_soc_codec_driver soc_codec_dev_wm8350 = {
1591 .probe = wm8350_codec_probe, 1591 .probe = wm8350_codec_probe,
1592 .remove = wm8350_codec_remove, 1592 .remove = wm8350_codec_remove,
1593 .get_regmap = wm8350_get_regmap, 1593 .get_regmap = wm8350_get_regmap,
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c
index 4551e54a8d5b..6c59fb933bd6 100644
--- a/sound/soc/codecs/wm8400.c
+++ b/sound/soc/codecs/wm8400.c
@@ -1332,7 +1332,7 @@ static struct regmap *wm8400_get_regmap(struct device *dev)
1332 return wm8400->regmap; 1332 return wm8400->regmap;
1333} 1333}
1334 1334
1335static struct snd_soc_codec_driver soc_codec_dev_wm8400 = { 1335static const struct snd_soc_codec_driver soc_codec_dev_wm8400 = {
1336 .probe = wm8400_codec_probe, 1336 .probe = wm8400_codec_probe,
1337 .remove = wm8400_codec_remove, 1337 .remove = wm8400_codec_remove,
1338 .get_regmap = wm8400_get_regmap, 1338 .get_regmap = wm8400_get_regmap,
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 7f93adf7118d..119ceac684ae 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -581,7 +581,7 @@ static int wm8510_probe(struct snd_soc_codec *codec)
581 return 0; 581 return 0;
582} 582}
583 583
584static struct snd_soc_codec_driver soc_codec_dev_wm8510 = { 584static const struct snd_soc_codec_driver soc_codec_dev_wm8510 = {
585 .probe = wm8510_probe, 585 .probe = wm8510_probe,
586 .set_bias_level = wm8510_set_bias_level, 586 .set_bias_level = wm8510_set_bias_level,
587 .suspend_bias_off = true, 587 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c
index 0bb189a3d322..deb2e075428e 100644
--- a/sound/soc/codecs/wm8523.c
+++ b/sound/soc/codecs/wm8523.c
@@ -413,7 +413,7 @@ static int wm8523_probe(struct snd_soc_codec *codec)
413 return 0; 413 return 0;
414} 414}
415 415
416static struct snd_soc_codec_driver soc_codec_dev_wm8523 = { 416static const struct snd_soc_codec_driver soc_codec_dev_wm8523 = {
417 .probe = wm8523_probe, 417 .probe = wm8523_probe,
418 .set_bias_level = wm8523_set_bias_level, 418 .set_bias_level = wm8523_set_bias_level,
419 .suspend_bias_off = true, 419 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index 2e69270a9015..faa7287a5253 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -899,7 +899,7 @@ static int wm8580_remove(struct snd_soc_codec *codec)
899 return 0; 899 return 0;
900} 900}
901 901
902static struct snd_soc_codec_driver soc_codec_dev_wm8580 = { 902static const struct snd_soc_codec_driver soc_codec_dev_wm8580 = {
903 .probe = wm8580_probe, 903 .probe = wm8580_probe,
904 .remove = wm8580_remove, 904 .remove = wm8580_remove,
905 .set_bias_level = wm8580_set_bias_level, 905 .set_bias_level = wm8580_set_bias_level,
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c
index 4e8ebefe25f4..2b376c9c99af 100644
--- a/sound/soc/codecs/wm8711.c
+++ b/sound/soc/codecs/wm8711.c
@@ -367,7 +367,7 @@ static int wm8711_probe(struct snd_soc_codec *codec)
367 367
368} 368}
369 369
370static struct snd_soc_codec_driver soc_codec_dev_wm8711 = { 370static const struct snd_soc_codec_driver soc_codec_dev_wm8711 = {
371 .probe = wm8711_probe, 371 .probe = wm8711_probe,
372 .set_bias_level = wm8711_set_bias_level, 372 .set_bias_level = wm8711_set_bias_level,
373 .suspend_bias_off = true, 373 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8727.c b/sound/soc/codecs/wm8727.c
index b01e64ec45fd..7fde077a014b 100644
--- a/sound/soc/codecs/wm8727.c
+++ b/sound/soc/codecs/wm8727.c
@@ -53,7 +53,7 @@ static struct snd_soc_dai_driver wm8727_dai = {
53 }, 53 },
54}; 54};
55 55
56static struct snd_soc_codec_driver soc_codec_dev_wm8727 = { 56static const struct snd_soc_codec_driver soc_codec_dev_wm8727 = {
57 .component_driver = { 57 .component_driver = {
58 .dapm_widgets = wm8727_dapm_widgets, 58 .dapm_widgets = wm8727_dapm_widgets,
59 .num_dapm_widgets = ARRAY_SIZE(wm8727_dapm_widgets), 59 .num_dapm_widgets = ARRAY_SIZE(wm8727_dapm_widgets),
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c
index dcd64b38bd7d..797cc6e7c70f 100644
--- a/sound/soc/codecs/wm8728.c
+++ b/sound/soc/codecs/wm8728.c
@@ -211,7 +211,7 @@ static struct snd_soc_dai_driver wm8728_dai = {
211 .ops = &wm8728_dai_ops, 211 .ops = &wm8728_dai_ops,
212}; 212};
213 213
214static struct snd_soc_codec_driver soc_codec_dev_wm8728 = { 214static const struct snd_soc_codec_driver soc_codec_dev_wm8728 = {
215 .set_bias_level = wm8728_set_bias_level, 215 .set_bias_level = wm8728_set_bias_level,
216 .suspend_bias_off = true, 216 .suspend_bias_off = true,
217 217
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 545fc9ae1a94..4f9a1eb28120 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -628,7 +628,7 @@ err_regulator_enable:
628 return ret; 628 return ret;
629} 629}
630 630
631static struct snd_soc_codec_driver soc_codec_dev_wm8731 = { 631static const struct snd_soc_codec_driver soc_codec_dev_wm8731 = {
632 .set_bias_level = wm8731_set_bias_level, 632 .set_bias_level = wm8731_set_bias_level,
633 .suspend_bias_off = true, 633 .suspend_bias_off = true,
634 634
diff --git a/sound/soc/codecs/wm8737.c b/sound/soc/codecs/wm8737.c
index 728c42cc70ca..f0cb1c4afe3c 100644
--- a/sound/soc/codecs/wm8737.c
+++ b/sound/soc/codecs/wm8737.c
@@ -573,7 +573,7 @@ err_get:
573 return ret; 573 return ret;
574} 574}
575 575
576static struct snd_soc_codec_driver soc_codec_dev_wm8737 = { 576static const struct snd_soc_codec_driver soc_codec_dev_wm8737 = {
577 .probe = wm8737_probe, 577 .probe = wm8737_probe,
578 .set_bias_level = wm8737_set_bias_level, 578 .set_bias_level = wm8737_set_bias_level,
579 .suspend_bias_off = true, 579 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c
index 3e432721903e..565d477cd790 100644
--- a/sound/soc/codecs/wm8741.c
+++ b/sound/soc/codecs/wm8741.c
@@ -497,7 +497,7 @@ static int wm8741_remove(struct snd_soc_codec *codec)
497 return 0; 497 return 0;
498} 498}
499 499
500static struct snd_soc_codec_driver soc_codec_dev_wm8741 = { 500static const struct snd_soc_codec_driver soc_codec_dev_wm8741 = {
501 .probe = wm8741_probe, 501 .probe = wm8741_probe,
502 .remove = wm8741_remove, 502 .remove = wm8741_remove,
503 .resume = wm8741_resume, 503 .resume = wm8741_resume,
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index a96a1456897b..0da2bbaf06d1 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -708,7 +708,7 @@ static int wm8750_probe(struct snd_soc_codec *codec)
708 return ret; 708 return ret;
709} 709}
710 710
711static struct snd_soc_codec_driver soc_codec_dev_wm8750 = { 711static const struct snd_soc_codec_driver soc_codec_dev_wm8750 = {
712 .probe = wm8750_probe, 712 .probe = wm8750_probe,
713 .set_bias_level = wm8750_set_bias_level, 713 .set_bias_level = wm8750_set_bias_level,
714 .suspend_bias_off = true, 714 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index 1bb272c36ad9..9bdf5447f6f6 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1478,7 +1478,7 @@ static int wm8753_probe(struct snd_soc_codec *codec)
1478 return 0; 1478 return 0;
1479} 1479}
1480 1480
1481static struct snd_soc_codec_driver soc_codec_dev_wm8753 = { 1481static const struct snd_soc_codec_driver soc_codec_dev_wm8753 = {
1482 .probe = wm8753_probe, 1482 .probe = wm8753_probe,
1483 .resume = wm8753_resume, 1483 .resume = wm8753_resume,
1484 .set_bias_level = wm8753_set_bias_level, 1484 .set_bias_level = wm8753_set_bias_level,
diff --git a/sound/soc/codecs/wm8770.c b/sound/soc/codecs/wm8770.c
index 8783a5fc123e..d6edcbbdec12 100644
--- a/sound/soc/codecs/wm8770.c
+++ b/sound/soc/codecs/wm8770.c
@@ -608,7 +608,7 @@ err_reg_enable:
608 return ret; 608 return ret;
609} 609}
610 610
611static struct snd_soc_codec_driver soc_codec_dev_wm8770 = { 611static const struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
612 .probe = wm8770_probe, 612 .probe = wm8770_probe,
613 .set_bias_level = wm8770_set_bias_level, 613 .set_bias_level = wm8770_set_bias_level,
614 .idle_bias_off = true, 614 .idle_bias_off = true,
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c
index f17a3a8fffb0..ae30480b3976 100644
--- a/sound/soc/codecs/wm8776.c
+++ b/sound/soc/codecs/wm8776.c
@@ -425,7 +425,7 @@ static int wm8776_probe(struct snd_soc_codec *codec)
425 return ret; 425 return ret;
426} 426}
427 427
428static struct snd_soc_codec_driver soc_codec_dev_wm8776 = { 428static const struct snd_soc_codec_driver soc_codec_dev_wm8776 = {
429 .probe = wm8776_probe, 429 .probe = wm8776_probe,
430 .set_bias_level = wm8776_set_bias_level, 430 .set_bias_level = wm8776_set_bias_level,
431 .suspend_bias_off = true, 431 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8782.c b/sound/soc/codecs/wm8782.c
index 1e9c4953dc10..bcda21018505 100644
--- a/sound/soc/codecs/wm8782.c
+++ b/sound/soc/codecs/wm8782.c
@@ -50,7 +50,7 @@ static struct snd_soc_dai_driver wm8782_dai = {
50 }, 50 },
51}; 51};
52 52
53static struct snd_soc_codec_driver soc_codec_dev_wm8782 = { 53static const struct snd_soc_codec_driver soc_codec_dev_wm8782 = {
54 .component_driver = { 54 .component_driver = {
55 .dapm_widgets = wm8782_dapm_widgets, 55 .dapm_widgets = wm8782_dapm_widgets,
56 .num_dapm_widgets = ARRAY_SIZE(wm8782_dapm_widgets), 56 .num_dapm_widgets = ARRAY_SIZE(wm8782_dapm_widgets),
diff --git a/sound/soc/codecs/wm8900.c b/sound/soc/codecs/wm8900.c
index 724cec4a638d..c77b49a29311 100644
--- a/sound/soc/codecs/wm8900.c
+++ b/sound/soc/codecs/wm8900.c
@@ -1208,7 +1208,7 @@ static int wm8900_probe(struct snd_soc_codec *codec)
1208 return 0; 1208 return 0;
1209} 1209}
1210 1210
1211static struct snd_soc_codec_driver soc_codec_dev_wm8900 = { 1211static const struct snd_soc_codec_driver soc_codec_dev_wm8900 = {
1212 .probe = wm8900_probe, 1212 .probe = wm8900_probe,
1213 .suspend = wm8900_suspend, 1213 .suspend = wm8900_suspend,
1214 .resume = wm8900_resume, 1214 .resume = wm8900_resume,
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index c19ba7ca3a35..837c8b9f19e9 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -1874,7 +1874,7 @@ static void wm8903_free_gpio(struct wm8903_priv *wm8903)
1874} 1874}
1875#endif 1875#endif
1876 1876
1877static struct snd_soc_codec_driver soc_codec_dev_wm8903 = { 1877static const struct snd_soc_codec_driver soc_codec_dev_wm8903 = {
1878 .resume = wm8903_resume, 1878 .resume = wm8903_resume,
1879 .set_bias_level = wm8903_set_bias_level, 1879 .set_bias_level = wm8903_set_bias_level,
1880 .seq_notifier = wm8903_seq_notifier, 1880 .seq_notifier = wm8903_seq_notifier,
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index edd7a7709194..4fd350e8420d 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -2086,7 +2086,7 @@ static int wm8904_remove(struct snd_soc_codec *codec)
2086 return 0; 2086 return 0;
2087} 2087}
2088 2088
2089static struct snd_soc_codec_driver soc_codec_dev_wm8904 = { 2089static const struct snd_soc_codec_driver soc_codec_dev_wm8904 = {
2090 .probe = wm8904_probe, 2090 .probe = wm8904_probe,
2091 .remove = wm8904_remove, 2091 .remove = wm8904_remove,
2092 .set_bias_level = wm8904_set_bias_level, 2092 .set_bias_level = wm8904_set_bias_level,
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
index 3c9febcc8636..b5935625feeb 100644
--- a/sound/soc/codecs/wm8940.c
+++ b/sound/soc/codecs/wm8940.c
@@ -723,7 +723,7 @@ static int wm8940_probe(struct snd_soc_codec *codec)
723 return ret; 723 return ret;
724} 724}
725 725
726static struct snd_soc_codec_driver soc_codec_dev_wm8940 = { 726static const struct snd_soc_codec_driver soc_codec_dev_wm8940 = {
727 .probe = wm8940_probe, 727 .probe = wm8940_probe,
728 .set_bias_level = wm8940_set_bias_level, 728 .set_bias_level = wm8940_set_bias_level,
729 .suspend_bias_off = true, 729 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c
index 575075d5587e..1edc7b1df31d 100644
--- a/sound/soc/codecs/wm8955.c
+++ b/sound/soc/codecs/wm8955.c
@@ -940,7 +940,7 @@ err_enable:
940 return ret; 940 return ret;
941} 941}
942 942
943static struct snd_soc_codec_driver soc_codec_dev_wm8955 = { 943static const struct snd_soc_codec_driver soc_codec_dev_wm8955 = {
944 .probe = wm8955_probe, 944 .probe = wm8955_probe,
945 .set_bias_level = wm8955_set_bias_level, 945 .set_bias_level = wm8955_set_bias_level,
946 .suspend_bias_off = true, 946 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index d7f444f87460..be3244361210 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -1264,7 +1264,7 @@ static int wm8960_probe(struct snd_soc_codec *codec)
1264 return 0; 1264 return 0;
1265} 1265}
1266 1266
1267static struct snd_soc_codec_driver soc_codec_dev_wm8960 = { 1267static const struct snd_soc_codec_driver soc_codec_dev_wm8960 = {
1268 .probe = wm8960_probe, 1268 .probe = wm8960_probe,
1269 .set_bias_level = wm8960_set_bias_level, 1269 .set_bias_level = wm8960_set_bias_level,
1270 .suspend_bias_off = true, 1270 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c
index 4b51761f6816..e23ceac76015 100644
--- a/sound/soc/codecs/wm8961.c
+++ b/sound/soc/codecs/wm8961.c
@@ -882,7 +882,7 @@ static int wm8961_resume(struct snd_soc_codec *codec)
882#define wm8961_resume NULL 882#define wm8961_resume NULL
883#endif 883#endif
884 884
885static struct snd_soc_codec_driver soc_codec_dev_wm8961 = { 885static const struct snd_soc_codec_driver soc_codec_dev_wm8961 = {
886 .probe = wm8961_probe, 886 .probe = wm8961_probe,
887 .resume = wm8961_resume, 887 .resume = wm8961_resume,
888 .set_bias_level = wm8961_set_bias_level, 888 .set_bias_level = wm8961_set_bias_level,
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index f3109da24769..392b92067011 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3479,7 +3479,7 @@ static int wm8962_remove(struct snd_soc_codec *codec)
3479 return 0; 3479 return 0;
3480} 3480}
3481 3481
3482static struct snd_soc_codec_driver soc_codec_dev_wm8962 = { 3482static const struct snd_soc_codec_driver soc_codec_dev_wm8962 = {
3483 .probe = wm8962_probe, 3483 .probe = wm8962_probe,
3484 .remove = wm8962_remove, 3484 .remove = wm8962_remove,
3485 .set_bias_level = wm8962_set_bias_level, 3485 .set_bias_level = wm8962_set_bias_level,
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c
index 214fa139ff0e..887d31cf3945 100644
--- a/sound/soc/codecs/wm8971.c
+++ b/sound/soc/codecs/wm8971.c
@@ -649,7 +649,7 @@ static int wm8971_probe(struct snd_soc_codec *codec)
649 return 0; 649 return 0;
650} 650}
651 651
652static struct snd_soc_codec_driver soc_codec_dev_wm8971 = { 652static const struct snd_soc_codec_driver soc_codec_dev_wm8971 = {
653 .probe = wm8971_probe, 653 .probe = wm8971_probe,
654 .set_bias_level = wm8971_set_bias_level, 654 .set_bias_level = wm8971_set_bias_level,
655 .suspend_bias_off = true, 655 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c
index fbda6e3f8a9d..d414ddd6e197 100644
--- a/sound/soc/codecs/wm8974.c
+++ b/sound/soc/codecs/wm8974.c
@@ -676,7 +676,7 @@ static int wm8974_probe(struct snd_soc_codec *codec)
676 return 0; 676 return 0;
677} 677}
678 678
679static struct snd_soc_codec_driver soc_codec_dev_wm8974 = { 679static const struct snd_soc_codec_driver soc_codec_dev_wm8974 = {
680 .probe = wm8974_probe, 680 .probe = wm8974_probe,
681 .set_bias_level = wm8974_set_bias_level, 681 .set_bias_level = wm8974_set_bias_level,
682 .suspend_bias_off = true, 682 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8978.c b/sound/soc/codecs/wm8978.c
index 910b36f11264..90b2d418ef60 100644
--- a/sound/soc/codecs/wm8978.c
+++ b/sound/soc/codecs/wm8978.c
@@ -993,7 +993,7 @@ static int wm8978_probe(struct snd_soc_codec *codec)
993 return 0; 993 return 0;
994} 994}
995 995
996static struct snd_soc_codec_driver soc_codec_dev_wm8978 = { 996static const struct snd_soc_codec_driver soc_codec_dev_wm8978 = {
997 .probe = wm8978_probe, 997 .probe = wm8978_probe,
998 .suspend = wm8978_suspend, 998 .suspend = wm8978_suspend,
999 .resume = wm8978_resume, 999 .resume = wm8978_resume,
diff --git a/sound/soc/codecs/wm8983.c b/sound/soc/codecs/wm8983.c
index 9609fc0e2821..bfdbe72ee687 100644
--- a/sound/soc/codecs/wm8983.c
+++ b/sound/soc/codecs/wm8983.c
@@ -976,7 +976,7 @@ static struct snd_soc_dai_driver wm8983_dai = {
976 .symmetric_rates = 1 976 .symmetric_rates = 1
977}; 977};
978 978
979static struct snd_soc_codec_driver soc_codec_dev_wm8983 = { 979static const struct snd_soc_codec_driver soc_codec_dev_wm8983 = {
980 .probe = wm8983_probe, 980 .probe = wm8983_probe,
981 .set_bias_level = wm8983_set_bias_level, 981 .set_bias_level = wm8983_set_bias_level,
982 .suspend_bias_off = true, 982 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c
index bcf34730d507..05344f974ff3 100644
--- a/sound/soc/codecs/wm8985.c
+++ b/sound/soc/codecs/wm8985.c
@@ -1105,7 +1105,7 @@ static struct snd_soc_dai_driver wm8985_dai = {
1105 .symmetric_rates = 1 1105 .symmetric_rates = 1
1106}; 1106};
1107 1107
1108static struct snd_soc_codec_driver soc_codec_dev_wm8985 = { 1108static const struct snd_soc_codec_driver soc_codec_dev_wm8985 = {
1109 .probe = wm8985_probe, 1109 .probe = wm8985_probe,
1110 .set_bias_level = wm8985_set_bias_level, 1110 .set_bias_level = wm8985_set_bias_level,
1111 .suspend_bias_off = true, 1111 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index a412fd0a2e64..a8945001e696 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -1294,7 +1294,7 @@ static int wm8990_probe(struct snd_soc_codec *codec)
1294 return 0; 1294 return 0;
1295} 1295}
1296 1296
1297static struct snd_soc_codec_driver soc_codec_dev_wm8990 = { 1297static const struct snd_soc_codec_driver soc_codec_dev_wm8990 = {
1298 .probe = wm8990_probe, 1298 .probe = wm8990_probe,
1299 .set_bias_level = wm8990_set_bias_level, 1299 .set_bias_level = wm8990_set_bias_level,
1300 .suspend_bias_off = true, 1300 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm8991.c b/sound/soc/codecs/wm8991.c
index 5822d1008f07..984379040794 100644
--- a/sound/soc/codecs/wm8991.c
+++ b/sound/soc/codecs/wm8991.c
@@ -1232,7 +1232,7 @@ static struct snd_soc_dai_driver wm8991_dai = {
1232 .ops = &wm8991_ops 1232 .ops = &wm8991_ops
1233}; 1233};
1234 1234
1235static struct snd_soc_codec_driver soc_codec_dev_wm8991 = { 1235static const struct snd_soc_codec_driver soc_codec_dev_wm8991 = {
1236 .set_bias_level = wm8991_set_bias_level, 1236 .set_bias_level = wm8991_set_bias_level,
1237 .suspend_bias_off = true, 1237 .suspend_bias_off = true,
1238 1238
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c
index 8668c4c391b0..195f7bf6eb22 100644
--- a/sound/soc/codecs/wm8993.c
+++ b/sound/soc/codecs/wm8993.c
@@ -1613,7 +1613,7 @@ static const struct regmap_config wm8993_regmap = {
1613 .num_reg_defaults = ARRAY_SIZE(wm8993_reg_defaults), 1613 .num_reg_defaults = ARRAY_SIZE(wm8993_reg_defaults),
1614}; 1614};
1615 1615
1616static struct snd_soc_codec_driver soc_codec_dev_wm8993 = { 1616static const struct snd_soc_codec_driver soc_codec_dev_wm8993 = {
1617 .probe = wm8993_probe, 1617 .probe = wm8993_probe,
1618 .suspend = wm8993_suspend, 1618 .suspend = wm8993_suspend,
1619 .resume = wm8993_resume, 1619 .resume = wm8993_resume,
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index a18aecb49935..3896523b71e9 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -4439,7 +4439,7 @@ static struct regmap *wm8994_get_regmap(struct device *dev)
4439 return control->regmap; 4439 return control->regmap;
4440} 4440}
4441 4441
4442static struct snd_soc_codec_driver soc_codec_dev_wm8994 = { 4442static const struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
4443 .probe = wm8994_codec_probe, 4443 .probe = wm8994_codec_probe,
4444 .remove = wm8994_codec_remove, 4444 .remove = wm8994_codec_remove,
4445 .suspend = wm8994_codec_suspend, 4445 .suspend = wm8994_codec_suspend,
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
index abacf6c99499..5eba8ffba427 100644
--- a/sound/soc/codecs/wm8996.c
+++ b/sound/soc/codecs/wm8996.c
@@ -2684,7 +2684,7 @@ static int wm8996_remove(struct snd_soc_codec *codec)
2684 return 0; 2684 return 0;
2685} 2685}
2686 2686
2687static struct snd_soc_codec_driver soc_codec_dev_wm8996 = { 2687static const struct snd_soc_codec_driver soc_codec_dev_wm8996 = {
2688 .probe = wm8996_probe, 2688 .probe = wm8996_probe,
2689 .remove = wm8996_remove, 2689 .remove = wm8996_remove,
2690 .set_bias_level = wm8996_set_bias_level, 2690 .set_bias_level = wm8996_set_bias_level,
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c
index cf23a6b76846..2f2821b3382f 100644
--- a/sound/soc/codecs/wm8997.c
+++ b/sound/soc/codecs/wm8997.c
@@ -1095,7 +1095,7 @@ static struct regmap *wm8997_get_regmap(struct device *dev)
1095 return priv->core.arizona->regmap; 1095 return priv->core.arizona->regmap;
1096} 1096}
1097 1097
1098static struct snd_soc_codec_driver soc_codec_dev_wm8997 = { 1098static const struct snd_soc_codec_driver soc_codec_dev_wm8997 = {
1099 .probe = wm8997_codec_probe, 1099 .probe = wm8997_codec_probe,
1100 .remove = wm8997_codec_remove, 1100 .remove = wm8997_codec_remove,
1101 .get_regmap = wm8997_get_regmap, 1101 .get_regmap = wm8997_get_regmap,
diff --git a/sound/soc/codecs/wm8998.c b/sound/soc/codecs/wm8998.c
index 315b23b836d0..f6d18d77cec2 100644
--- a/sound/soc/codecs/wm8998.c
+++ b/sound/soc/codecs/wm8998.c
@@ -1351,7 +1351,7 @@ static struct regmap *wm8998_get_regmap(struct device *dev)
1351 return priv->core.arizona->regmap; 1351 return priv->core.arizona->regmap;
1352} 1352}
1353 1353
1354static struct snd_soc_codec_driver soc_codec_dev_wm8998 = { 1354static const struct snd_soc_codec_driver soc_codec_dev_wm8998 = {
1355 .probe = wm8998_codec_probe, 1355 .probe = wm8998_codec_probe,
1356 .remove = wm8998_codec_remove, 1356 .remove = wm8998_codec_remove,
1357 .get_regmap = wm8998_get_regmap, 1357 .get_regmap = wm8998_get_regmap,
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index 30eaf4c92cd8..856867ec2813 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -1274,7 +1274,7 @@ static int wm9081_probe(struct snd_soc_codec *codec)
1274 return 0; 1274 return 0;
1275} 1275}
1276 1276
1277static struct snd_soc_codec_driver soc_codec_dev_wm9081 = { 1277static const struct snd_soc_codec_driver soc_codec_dev_wm9081 = {
1278 .probe = wm9081_probe, 1278 .probe = wm9081_probe,
1279 1279
1280 .set_sysclk = wm9081_set_sysclk, 1280 .set_sysclk = wm9081_set_sysclk,
diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c
index 5d737290f547..5a131385cb2f 100644
--- a/sound/soc/codecs/wm9090.c
+++ b/sound/soc/codecs/wm9090.c
@@ -550,7 +550,7 @@ static int wm9090_probe(struct snd_soc_codec *codec)
550 return 0; 550 return 0;
551} 551}
552 552
553static struct snd_soc_codec_driver soc_codec_dev_wm9090 = { 553static const struct snd_soc_codec_driver soc_codec_dev_wm9090 = {
554 .probe = wm9090_probe, 554 .probe = wm9090_probe,
555 .set_bias_level = wm9090_set_bias_level, 555 .set_bias_level = wm9090_set_bias_level,
556 .suspend_bias_off = true, 556 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c
index c88492d137fb..dcdd055db57b 100644
--- a/sound/soc/codecs/wm9705.c
+++ b/sound/soc/codecs/wm9705.c
@@ -352,7 +352,7 @@ static int wm9705_soc_remove(struct snd_soc_codec *codec)
352 return 0; 352 return 0;
353} 353}
354 354
355static struct snd_soc_codec_driver soc_codec_dev_wm9705 = { 355static const struct snd_soc_codec_driver soc_codec_dev_wm9705 = {
356 .probe = wm9705_soc_probe, 356 .probe = wm9705_soc_probe,
357 .remove = wm9705_soc_remove, 357 .remove = wm9705_soc_remove,
358 .suspend = wm9705_soc_suspend, 358 .suspend = wm9705_soc_suspend,
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index e5aafdd85929..557709eac698 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -669,7 +669,7 @@ static int wm9712_soc_remove(struct snd_soc_codec *codec)
669 return 0; 669 return 0;
670} 670}
671 671
672static struct snd_soc_codec_driver soc_codec_dev_wm9712 = { 672static const struct snd_soc_codec_driver soc_codec_dev_wm9712 = {
673 .probe = wm9712_soc_probe, 673 .probe = wm9712_soc_probe,
674 .remove = wm9712_soc_remove, 674 .remove = wm9712_soc_remove,
675 .resume = wm9712_soc_resume, 675 .resume = wm9712_soc_resume,
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 255a7c2d1d65..e4301ddb1b84 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -1235,7 +1235,7 @@ static int wm9713_soc_remove(struct snd_soc_codec *codec)
1235 return 0; 1235 return 0;
1236} 1236}
1237 1237
1238static struct snd_soc_codec_driver soc_codec_dev_wm9713 = { 1238static const struct snd_soc_codec_driver soc_codec_dev_wm9713 = {
1239 .probe = wm9713_soc_probe, 1239 .probe = wm9713_soc_probe,
1240 .remove = wm9713_soc_remove, 1240 .remove = wm9713_soc_remove,
1241 .suspend = wm9713_soc_suspend, 1241 .suspend = wm9713_soc_suspend,