aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-03 12:00:19 -0400
committerMark Brown <broonie@kernel.org>2017-08-10 11:10:50 -0400
commita180ba45b1cf630b3bd5912ce235b2ee16606b8e (patch)
tree7357cb3beb7fa05c24bc9a472f34c5e8a8daabb1
parent5a36aedb087ba16a2690b377fa25693dc7e52d34 (diff)
ASoC: codecs: add const to snd_soc_codec_driver structures
Declare snd_soc_codec_driver structures as const as they are only passed as an argument to the function snd_soc_register_codec. This argument is of type const, so declare the structures with this property as const. In file codecs/sn95031.c, snd_soc_codec_driver structure is also used in a copy operation along with getting passed to snd_soc_register_codec. So, it can be made const too. Done using Coccinelle: @match disable optional_qualifier@ identifier s; position p; @@ static struct snd_soc_codec_driver s@p={...}; @good1@ identifier match.s; position p; @@ snd_soc_register_codec(...,&s@p,...) @bad@ identifier match.s; position p!={match.p,good1.p}; @@ s@p @depends on !bad disable optional_qualifier@ identifier match.s; @@ static +const struct snd_soc_codec_driver s={...}; Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/88pm860x-codec.c2
-rw-r--r--sound/soc/codecs/ab8500-codec.c2
-rw-r--r--sound/soc/codecs/ac97.c2
-rw-r--r--sound/soc/codecs/ad1836.c2
-rw-r--r--sound/soc/codecs/ad193x.c2
-rw-r--r--sound/soc/codecs/ad1980.c2
-rw-r--r--sound/soc/codecs/ad73311.c2
-rw-r--r--sound/soc/codecs/adau1373.c2
-rw-r--r--sound/soc/codecs/adau1701.c2
-rw-r--r--sound/soc/codecs/adau1977.c2
-rw-r--r--sound/soc/codecs/adav80x.c2
-rw-r--r--sound/soc/codecs/ads117x.c2
-rw-r--r--sound/soc/codecs/ak4104.c2
-rw-r--r--sound/soc/codecs/ak4535.c2
-rw-r--r--sound/soc/codecs/ak4554.c2
-rw-r--r--sound/soc/codecs/ak4613.c2
-rw-r--r--sound/soc/codecs/ak4641.c2
-rw-r--r--sound/soc/codecs/ak4642.c2
-rw-r--r--sound/soc/codecs/ak4671.c2
-rw-r--r--sound/soc/codecs/ak5386.c2
-rw-r--r--sound/soc/codecs/alc5623.c2
-rw-r--r--sound/soc/codecs/bt-sco.c2
-rw-r--r--sound/soc/codecs/cq93vc.c2
-rw-r--r--sound/soc/codecs/cs35l33.c2
-rw-r--r--sound/soc/codecs/cs35l34.c2
-rw-r--r--sound/soc/codecs/cs35l35.c2
-rw-r--r--sound/soc/codecs/cs4271.c2
-rw-r--r--sound/soc/codecs/cs42l51.c2
-rw-r--r--sound/soc/codecs/cs4349.c2
-rw-r--r--sound/soc/codecs/cs47l24.c2
-rw-r--r--sound/soc/codecs/cs53l30.c2
-rw-r--r--sound/soc/codecs/cx20442.c2
-rw-r--r--sound/soc/codecs/da7210.c2
-rw-r--r--sound/soc/codecs/da7213.c2
-rw-r--r--sound/soc/codecs/da7218.c2
-rw-r--r--sound/soc/codecs/da7219.c2
-rw-r--r--sound/soc/codecs/da732x.c2
-rw-r--r--sound/soc/codecs/da9055.c2
-rw-r--r--sound/soc/codecs/dmic.c2
-rw-r--r--sound/soc/codecs/es7134.c2
-rw-r--r--sound/soc/codecs/es8316.c2
-rw-r--r--sound/soc/codecs/es8328.c2
-rw-r--r--sound/soc/codecs/hdac_hdmi.c2
-rw-r--r--sound/soc/codecs/hdmi-codec.c2
-rw-r--r--sound/soc/codecs/ics43432.c2
-rw-r--r--sound/soc/codecs/inno_rk3036.c2
-rw-r--r--sound/soc/codecs/isabelle.c2
-rw-r--r--sound/soc/codecs/jz4740.c2
-rw-r--r--sound/soc/codecs/lm49453.c2
-rw-r--r--sound/soc/codecs/max98088.c2
-rw-r--r--sound/soc/codecs/max98090.c2
-rw-r--r--sound/soc/codecs/max98095.c2
-rw-r--r--sound/soc/codecs/max98357a.c2
-rw-r--r--sound/soc/codecs/max9850.c2
-rw-r--r--sound/soc/codecs/max9860.c2
-rw-r--r--sound/soc/codecs/max9867.c2
-rw-r--r--sound/soc/codecs/max98926.c2
-rw-r--r--sound/soc/codecs/mc13783.c2
-rw-r--r--sound/soc/codecs/ml26124.c2
-rw-r--r--sound/soc/codecs/msm8916-wcd-analog.c2
-rw-r--r--sound/soc/codecs/msm8916-wcd-digital.c2
-rw-r--r--sound/soc/codecs/nau8540.c2
-rw-r--r--sound/soc/codecs/nau8810.c2
-rw-r--r--sound/soc/codecs/nau8824.c2
-rw-r--r--sound/soc/codecs/nau8825.c2
-rw-r--r--sound/soc/codecs/pcm1681.c2
-rw-r--r--sound/soc/codecs/pcm179x.c2
-rw-r--r--sound/soc/codecs/pcm3008.c2
-rw-r--r--sound/soc/codecs/pcm512x.c2
-rw-r--r--sound/soc/codecs/rt274.c2
-rw-r--r--sound/soc/codecs/rt286.c2
-rw-r--r--sound/soc/codecs/rt298.c2
-rw-r--r--sound/soc/codecs/rt5514.c2
-rw-r--r--sound/soc/codecs/rt5616.c2
-rw-r--r--sound/soc/codecs/rt5631.c2
-rw-r--r--sound/soc/codecs/rt5640.c2
-rw-r--r--sound/soc/codecs/rt5645.c2
-rw-r--r--sound/soc/codecs/rt5651.c2
-rw-r--r--sound/soc/codecs/rt5659.c2
-rw-r--r--sound/soc/codecs/rt5660.c2
-rw-r--r--sound/soc/codecs/rt5663.c2
-rw-r--r--sound/soc/codecs/rt5665.c2
-rw-r--r--sound/soc/codecs/rt5670.c2
-rw-r--r--sound/soc/codecs/rt5677.c2
-rw-r--r--sound/soc/codecs/sgtl5000.c2
-rw-r--r--sound/soc/codecs/si476x.c2
-rw-r--r--sound/soc/codecs/sirf-audio-codec.c2
-rw-r--r--sound/soc/codecs/sn95031.c2
-rw-r--r--sound/soc/codecs/spdif_receiver.c2
-rw-r--r--sound/soc/codecs/spdif_transmitter.c2
-rw-r--r--sound/soc/codecs/ssm2518.c2
-rw-r--r--sound/soc/codecs/ssm2602.c2
-rw-r--r--sound/soc/codecs/ssm4567.c2
-rw-r--r--sound/soc/codecs/stac9766.c2
-rw-r--r--sound/soc/codecs/tas2552.c2
-rw-r--r--sound/soc/codecs/tas5086.c2
-rw-r--r--sound/soc/codecs/tas5720.c2
-rw-r--r--sound/soc/codecs/tlv320aic23.c2
-rw-r--r--sound/soc/codecs/tlv320aic26.c2
-rw-r--r--sound/soc/codecs/tlv320aic31xx.c2
-rw-r--r--sound/soc/codecs/tlv320aic32x4.c2
-rw-r--r--sound/soc/codecs/tlv320aic3x.c2
-rw-r--r--sound/soc/codecs/tlv320dac33.c2
-rw-r--r--sound/soc/codecs/twl4030.c2
-rw-r--r--sound/soc/codecs/twl6040.c2
-rw-r--r--sound/soc/codecs/uda134x.c2
-rw-r--r--sound/soc/codecs/uda1380.c2
-rw-r--r--sound/soc/codecs/wl1273.c2
-rw-r--r--sound/soc/codecs/zx_aud96p22.c2
109 files changed, 109 insertions, 109 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c
index b013a4c62b63..848c5fe49bc7 100644
--- a/sound/soc/codecs/88pm860x-codec.c
+++ b/sound/soc/codecs/88pm860x-codec.c
@@ -1355,7 +1355,7 @@ static struct regmap *pm860x_get_regmap(struct device *dev)
1355 return pm860x->regmap; 1355 return pm860x->regmap;
1356} 1356}
1357 1357
1358static struct snd_soc_codec_driver soc_codec_dev_pm860x = { 1358static const struct snd_soc_codec_driver soc_codec_dev_pm860x = {
1359 .probe = pm860x_probe, 1359 .probe = pm860x_probe,
1360 .remove = pm860x_remove, 1360 .remove = pm860x_remove,
1361 .set_bias_level = pm860x_set_bias_level, 1361 .set_bias_level = pm860x_set_bias_level,
diff --git a/sound/soc/codecs/ab8500-codec.c b/sound/soc/codecs/ab8500-codec.c
index 312b2a11abb6..006627b8c3a8 100644
--- a/sound/soc/codecs/ab8500-codec.c
+++ b/sound/soc/codecs/ab8500-codec.c
@@ -2523,7 +2523,7 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
2523 return status; 2523 return status;
2524} 2524}
2525 2525
2526static struct snd_soc_codec_driver ab8500_codec_driver = { 2526static const struct snd_soc_codec_driver ab8500_codec_driver = {
2527 .probe = ab8500_codec_probe, 2527 .probe = ab8500_codec_probe,
2528 .component_driver = { 2528 .component_driver = {
2529 .controls = ab8500_ctrls, 2529 .controls = ab8500_ctrls,
diff --git a/sound/soc/codecs/ac97.c b/sound/soc/codecs/ac97.c
index f7f04c6be01e..440b4ce54376 100644
--- a/sound/soc/codecs/ac97.c
+++ b/sound/soc/codecs/ac97.c
@@ -112,7 +112,7 @@ static int ac97_soc_resume(struct snd_soc_codec *codec)
112#define ac97_soc_resume NULL 112#define ac97_soc_resume NULL
113#endif 113#endif
114 114
115static struct snd_soc_codec_driver soc_codec_dev_ac97 = { 115static const struct snd_soc_codec_driver soc_codec_dev_ac97 = {
116 .probe = ac97_soc_probe, 116 .probe = ac97_soc_probe,
117 .suspend = ac97_soc_suspend, 117 .suspend = ac97_soc_suspend,
118 .resume = ac97_soc_resume, 118 .resume = ac97_soc_resume,
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index a478239aadac..d0361caad09e 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -321,7 +321,7 @@ static int ad1836_remove(struct snd_soc_codec *codec)
321 AD1836_ADC_SERFMT_MASK, 0); 321 AD1836_ADC_SERFMT_MASK, 0);
322} 322}
323 323
324static struct snd_soc_codec_driver soc_codec_dev_ad1836 = { 324static const struct snd_soc_codec_driver soc_codec_dev_ad1836 = {
325 .probe = ad1836_probe, 325 .probe = ad1836_probe,
326 .remove = ad1836_remove, 326 .remove = ad1836_remove,
327 .suspend = ad1836_suspend, 327 .suspend = ad1836_suspend,
diff --git a/sound/soc/codecs/ad193x.c b/sound/soc/codecs/ad193x.c
index d643557d89a7..d10988eec0c1 100644
--- a/sound/soc/codecs/ad193x.c
+++ b/sound/soc/codecs/ad193x.c
@@ -408,7 +408,7 @@ static int ad193x_codec_probe(struct snd_soc_codec *codec)
408 return 0; 408 return 0;
409} 409}
410 410
411static struct snd_soc_codec_driver soc_codec_dev_ad193x = { 411static const struct snd_soc_codec_driver soc_codec_dev_ad193x = {
412 .probe = ad193x_codec_probe, 412 .probe = ad193x_codec_probe,
413 .component_driver = { 413 .component_driver = {
414 .controls = ad193x_snd_controls, 414 .controls = ad193x_snd_controls,
diff --git a/sound/soc/codecs/ad1980.c b/sound/soc/codecs/ad1980.c
index b7c1b9f4bf5f..ce89bfb42094 100644
--- a/sound/soc/codecs/ad1980.c
+++ b/sound/soc/codecs/ad1980.c
@@ -295,7 +295,7 @@ static int ad1980_soc_remove(struct snd_soc_codec *codec)
295 return 0; 295 return 0;
296} 296}
297 297
298static struct snd_soc_codec_driver soc_codec_dev_ad1980 = { 298static const struct snd_soc_codec_driver soc_codec_dev_ad1980 = {
299 .probe = ad1980_soc_probe, 299 .probe = ad1980_soc_probe,
300 .remove = ad1980_soc_remove, 300 .remove = ad1980_soc_remove,
301 301
diff --git a/sound/soc/codecs/ad73311.c b/sound/soc/codecs/ad73311.c
index 3e358a49442d..d8d86a0fea60 100644
--- a/sound/soc/codecs/ad73311.c
+++ b/sound/soc/codecs/ad73311.c
@@ -54,7 +54,7 @@ static struct snd_soc_dai_driver ad73311_dai = {
54 .formats = SNDRV_PCM_FMTBIT_S16_LE, }, 54 .formats = SNDRV_PCM_FMTBIT_S16_LE, },
55}; 55};
56 56
57static struct snd_soc_codec_driver soc_codec_dev_ad73311 = { 57static const struct snd_soc_codec_driver soc_codec_dev_ad73311 = {
58 .component_driver = { 58 .component_driver = {
59 .dapm_widgets = ad73311_dapm_widgets, 59 .dapm_widgets = ad73311_dapm_widgets,
60 .num_dapm_widgets = ARRAY_SIZE(ad73311_dapm_widgets), 60 .num_dapm_widgets = ARRAY_SIZE(ad73311_dapm_widgets),
diff --git a/sound/soc/codecs/adau1373.c b/sound/soc/codecs/adau1373.c
index 8fa9045571ff..a865945d776a 100644
--- a/sound/soc/codecs/adau1373.c
+++ b/sound/soc/codecs/adau1373.c
@@ -1458,7 +1458,7 @@ static const struct regmap_config adau1373_regmap_config = {
1458 .num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults), 1458 .num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults),
1459}; 1459};
1460 1460
1461static struct snd_soc_codec_driver adau1373_codec_driver = { 1461static const struct snd_soc_codec_driver adau1373_codec_driver = {
1462 .probe = adau1373_probe, 1462 .probe = adau1373_probe,
1463 .resume = adau1373_resume, 1463 .resume = adau1373_resume,
1464 .set_bias_level = adau1373_set_bias_level, 1464 .set_bias_level = adau1373_set_bias_level,
diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c
index 3bad1bc8c00a..805afac8146b 100644
--- a/sound/soc/codecs/adau1701.c
+++ b/sound/soc/codecs/adau1701.c
@@ -757,7 +757,7 @@ static int adau1701_resume(struct snd_soc_codec *codec)
757#define adau1701_suspend NULL 757#define adau1701_suspend NULL
758#endif /* CONFIG_PM */ 758#endif /* CONFIG_PM */
759 759
760static struct snd_soc_codec_driver adau1701_codec_drv = { 760static const struct snd_soc_codec_driver adau1701_codec_drv = {
761 .probe = adau1701_probe, 761 .probe = adau1701_probe,
762 .remove = adau1701_remove, 762 .remove = adau1701_remove,
763 .resume = adau1701_resume, 763 .resume = adau1701_resume,
diff --git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c
index b319db6a69f8..329281675765 100644
--- a/sound/soc/codecs/adau1977.c
+++ b/sound/soc/codecs/adau1977.c
@@ -867,7 +867,7 @@ static int adau1977_codec_probe(struct snd_soc_codec *codec)
867 return 0; 867 return 0;
868} 868}
869 869
870static struct snd_soc_codec_driver adau1977_codec_driver = { 870static const struct snd_soc_codec_driver adau1977_codec_driver = {
871 .probe = adau1977_codec_probe, 871 .probe = adau1977_codec_probe,
872 .set_bias_level = adau1977_set_bias_level, 872 .set_bias_level = adau1977_set_bias_level,
873 .set_sysclk = adau1977_set_sysclk, 873 .set_sysclk = adau1977_set_sysclk,
diff --git a/sound/soc/codecs/adav80x.c b/sound/soc/codecs/adav80x.c
index 6e793ebb5883..da7ca81f47cf 100644
--- a/sound/soc/codecs/adav80x.c
+++ b/sound/soc/codecs/adav80x.c
@@ -825,7 +825,7 @@ static int adav80x_resume(struct snd_soc_codec *codec)
825 return 0; 825 return 0;
826} 826}
827 827
828static struct snd_soc_codec_driver adav80x_codec_driver = { 828static const struct snd_soc_codec_driver adav80x_codec_driver = {
829 .probe = adav80x_probe, 829 .probe = adav80x_probe,
830 .resume = adav80x_resume, 830 .resume = adav80x_resume,
831 .set_bias_level = adav80x_set_bias_level, 831 .set_bias_level = adav80x_set_bias_level,
diff --git a/sound/soc/codecs/ads117x.c b/sound/soc/codecs/ads117x.c
index 90c756d183b4..b7f0057c0239 100644
--- a/sound/soc/codecs/ads117x.c
+++ b/sound/soc/codecs/ads117x.c
@@ -58,7 +58,7 @@ static struct snd_soc_dai_driver ads117x_dai = {
58 .formats = ADS117X_FORMATS,}, 58 .formats = ADS117X_FORMATS,},
59}; 59};
60 60
61static struct snd_soc_codec_driver soc_codec_dev_ads117x = { 61static const struct snd_soc_codec_driver soc_codec_dev_ads117x = {
62 .component_driver = { 62 .component_driver = {
63 .dapm_widgets = ads117x_dapm_widgets, 63 .dapm_widgets = ads117x_dapm_widgets,
64 .num_dapm_widgets = ARRAY_SIZE(ads117x_dapm_widgets), 64 .num_dapm_widgets = ARRAY_SIZE(ads117x_dapm_widgets),
diff --git a/sound/soc/codecs/ak4104.c b/sound/soc/codecs/ak4104.c
index 1a9d233c94d0..dbb184118f2e 100644
--- a/sound/soc/codecs/ak4104.c
+++ b/sound/soc/codecs/ak4104.c
@@ -242,7 +242,7 @@ static int ak4104_soc_resume(struct snd_soc_codec *codec)
242#define ak4104_soc_resume NULL 242#define ak4104_soc_resume NULL
243#endif /* CONFIG_PM */ 243#endif /* CONFIG_PM */
244 244
245static struct snd_soc_codec_driver soc_codec_device_ak4104 = { 245static const struct snd_soc_codec_driver soc_codec_device_ak4104 = {
246 .probe = ak4104_probe, 246 .probe = ak4104_probe,
247 .remove = ak4104_remove, 247 .remove = ak4104_remove,
248 .suspend = ak4104_soc_suspend, 248 .suspend = ak4104_soc_suspend,
diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c
index 66cfffde9a12..e3c157dc88db 100644
--- a/sound/soc/codecs/ak4535.c
+++ b/sound/soc/codecs/ak4535.c
@@ -390,7 +390,7 @@ static const struct regmap_config ak4535_regmap = {
390 .num_reg_defaults = ARRAY_SIZE(ak4535_reg_defaults), 390 .num_reg_defaults = ARRAY_SIZE(ak4535_reg_defaults),
391}; 391};
392 392
393static struct snd_soc_codec_driver soc_codec_dev_ak4535 = { 393static const struct snd_soc_codec_driver soc_codec_dev_ak4535 = {
394 .resume = ak4535_resume, 394 .resume = ak4535_resume,
395 .set_bias_level = ak4535_set_bias_level, 395 .set_bias_level = ak4535_set_bias_level,
396 .suspend_bias_off = true, 396 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/ak4554.c b/sound/soc/codecs/ak4554.c
index b92c548b9d29..0bb4fe5c122a 100644
--- a/sound/soc/codecs/ak4554.c
+++ b/sound/soc/codecs/ak4554.c
@@ -64,7 +64,7 @@ static struct snd_soc_dai_driver ak4554_dai = {
64 .symmetric_rates = 1, 64 .symmetric_rates = 1,
65}; 65};
66 66
67static struct snd_soc_codec_driver soc_codec_dev_ak4554 = { 67static const struct snd_soc_codec_driver soc_codec_dev_ak4554 = {
68 .component_driver = { 68 .component_driver = {
69 .dapm_widgets = ak4554_dapm_widgets, 69 .dapm_widgets = ak4554_dapm_widgets,
70 .num_dapm_widgets = ARRAY_SIZE(ak4554_dapm_widgets), 70 .num_dapm_widgets = ARRAY_SIZE(ak4554_dapm_widgets),
diff --git a/sound/soc/codecs/ak4613.c b/sound/soc/codecs/ak4613.c
index 690edebf029e..b95bb8b52e51 100644
--- a/sound/soc/codecs/ak4613.c
+++ b/sound/soc/codecs/ak4613.c
@@ -522,7 +522,7 @@ static int ak4613_resume(struct snd_soc_codec *codec)
522 return regcache_sync(regmap); 522 return regcache_sync(regmap);
523} 523}
524 524
525static struct snd_soc_codec_driver soc_codec_dev_ak4613 = { 525static const struct snd_soc_codec_driver soc_codec_dev_ak4613 = {
526 .suspend = ak4613_suspend, 526 .suspend = ak4613_suspend,
527 .resume = ak4613_resume, 527 .resume = ak4613_resume,
528 .set_bias_level = ak4613_set_bias_level, 528 .set_bias_level = ak4613_set_bias_level,
diff --git a/sound/soc/codecs/ak4641.c b/sound/soc/codecs/ak4641.c
index ebdaf56c1d61..60142ff32d4f 100644
--- a/sound/soc/codecs/ak4641.c
+++ b/sound/soc/codecs/ak4641.c
@@ -524,7 +524,7 @@ static struct snd_soc_dai_driver ak4641_dai[] = {
524}, 524},
525}; 525};
526 526
527static struct snd_soc_codec_driver soc_codec_dev_ak4641 = { 527static const struct snd_soc_codec_driver soc_codec_dev_ak4641 = {
528 .component_driver = { 528 .component_driver = {
529 .controls = ak4641_snd_controls, 529 .controls = ak4641_snd_controls,
530 .num_controls = ARRAY_SIZE(ak4641_snd_controls), 530 .num_controls = ARRAY_SIZE(ak4641_snd_controls),
diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 66de8a2013a6..29530c567bd9 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -550,7 +550,7 @@ static int ak4642_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_ak4642 = { 553static const struct snd_soc_codec_driver soc_codec_dev_ak4642 = {
554 .probe = ak4642_probe, 554 .probe = ak4642_probe,
555 .suspend = ak4642_suspend, 555 .suspend = ak4642_suspend,
556 .resume = ak4642_resume, 556 .resume = ak4642_resume,
diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c
index 6088afaabf62..dcfdff56fc5a 100644
--- a/sound/soc/codecs/ak4671.c
+++ b/sound/soc/codecs/ak4671.c
@@ -610,7 +610,7 @@ static struct snd_soc_dai_driver ak4671_dai = {
610 .ops = &ak4671_dai_ops, 610 .ops = &ak4671_dai_ops,
611}; 611};
612 612
613static struct snd_soc_codec_driver soc_codec_dev_ak4671 = { 613static const struct snd_soc_codec_driver soc_codec_dev_ak4671 = {
614 .set_bias_level = ak4671_set_bias_level, 614 .set_bias_level = ak4671_set_bias_level,
615 .component_driver = { 615 .component_driver = {
616 .controls = ak4671_snd_controls, 616 .controls = ak4671_snd_controls,
diff --git a/sound/soc/codecs/ak5386.c b/sound/soc/codecs/ak5386.c
index 0ef2df223336..d0e16c03815c 100644
--- a/sound/soc/codecs/ak5386.c
+++ b/sound/soc/codecs/ak5386.c
@@ -69,7 +69,7 @@ static int ak5386_soc_resume(struct snd_soc_codec *codec)
69#define ak5386_soc_resume NULL 69#define ak5386_soc_resume NULL
70#endif /* CONFIG_PM */ 70#endif /* CONFIG_PM */
71 71
72static struct snd_soc_codec_driver soc_codec_ak5386 = { 72static const struct snd_soc_codec_driver soc_codec_ak5386 = {
73 .probe = ak5386_soc_probe, 73 .probe = ak5386_soc_probe,
74 .remove = ak5386_soc_remove, 74 .remove = ak5386_soc_remove,
75 .suspend = ak5386_soc_suspend, 75 .suspend = ak5386_soc_suspend,
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c
index d2e3a3ef7499..1db965a93632 100644
--- a/sound/soc/codecs/alc5623.c
+++ b/sound/soc/codecs/alc5623.c
@@ -951,7 +951,7 @@ static int alc5623_probe(struct snd_soc_codec *codec)
951 return 0; 951 return 0;
952} 952}
953 953
954static struct snd_soc_codec_driver soc_codec_device_alc5623 = { 954static const struct snd_soc_codec_driver soc_codec_device_alc5623 = {
955 .probe = alc5623_probe, 955 .probe = alc5623_probe,
956 .suspend = alc5623_suspend, 956 .suspend = alc5623_suspend,
957 .resume = alc5623_resume, 957 .resume = alc5623_resume,
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c
index 8014e697d540..806191addb44 100644
--- a/sound/soc/codecs/bt-sco.c
+++ b/sound/soc/codecs/bt-sco.c
@@ -62,7 +62,7 @@ static struct snd_soc_dai_driver bt_sco_dai[] = {
62 } 62 }
63}; 63};
64 64
65static struct snd_soc_codec_driver soc_codec_dev_bt_sco = { 65static const struct snd_soc_codec_driver soc_codec_dev_bt_sco = {
66 .component_driver = { 66 .component_driver = {
67 .dapm_widgets = bt_sco_widgets, 67 .dapm_widgets = bt_sco_widgets,
68 .num_dapm_widgets = ARRAY_SIZE(bt_sco_widgets), 68 .num_dapm_widgets = ARRAY_SIZE(bt_sco_widgets),
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c
index 7a2d9a2ee427..6ed2cc374768 100644
--- a/sound/soc/codecs/cq93vc.c
+++ b/sound/soc/codecs/cq93vc.c
@@ -128,7 +128,7 @@ static struct regmap *cq93vc_get_regmap(struct device *dev)
128 return davinci_vc->regmap; 128 return davinci_vc->regmap;
129} 129}
130 130
131static struct snd_soc_codec_driver soc_codec_dev_cq93vc = { 131static const struct snd_soc_codec_driver soc_codec_dev_cq93vc = {
132 .set_bias_level = cq93vc_set_bias_level, 132 .set_bias_level = cq93vc_set_bias_level,
133 .get_regmap = cq93vc_get_regmap, 133 .get_regmap = cq93vc_get_regmap,
134 .component_driver = { 134 .component_driver = {
diff --git a/sound/soc/codecs/cs35l33.c b/sound/soc/codecs/cs35l33.c
index 6df29fa30fb9..61d128b53e14 100644
--- a/sound/soc/codecs/cs35l33.c
+++ b/sound/soc/codecs/cs35l33.c
@@ -831,7 +831,7 @@ static int cs35l33_probe(struct snd_soc_codec *codec)
831 return 0; 831 return 0;
832} 832}
833 833
834static struct snd_soc_codec_driver soc_codec_dev_cs35l33 = { 834static const struct snd_soc_codec_driver soc_codec_dev_cs35l33 = {
835 .probe = cs35l33_probe, 835 .probe = cs35l33_probe,
836 836
837 .set_bias_level = cs35l33_set_bias_level, 837 .set_bias_level = cs35l33_set_bias_level,
diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c
index 0a747c66cc6c..15d712f4803e 100644
--- a/sound/soc/codecs/cs35l34.c
+++ b/sound/soc/codecs/cs35l34.c
@@ -779,7 +779,7 @@ static int cs35l34_probe(struct snd_soc_codec *codec)
779} 779}
780 780
781 781
782static struct snd_soc_codec_driver soc_codec_dev_cs35l34 = { 782static const struct snd_soc_codec_driver soc_codec_dev_cs35l34 = {
783 .probe = cs35l34_probe, 783 .probe = cs35l34_probe,
784 784
785 .component_driver = { 785 .component_driver = {
diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c
index f1ee184ecab2..129978d1243e 100644
--- a/sound/soc/codecs/cs35l35.c
+++ b/sound/soc/codecs/cs35l35.c
@@ -1079,7 +1079,7 @@ static int cs35l35_codec_probe(struct snd_soc_codec *codec)
1079 return 0; 1079 return 0;
1080} 1080}
1081 1081
1082static struct snd_soc_codec_driver soc_codec_dev_cs35l35 = { 1082static const struct snd_soc_codec_driver soc_codec_dev_cs35l35 = {
1083 .probe = cs35l35_codec_probe, 1083 .probe = cs35l35_codec_probe,
1084 .set_sysclk = cs35l35_codec_set_sysclk, 1084 .set_sysclk = cs35l35_codec_set_sysclk,
1085 .component_driver = { 1085 .component_driver = {
diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
index d8824773dc29..49a80627af12 100644
--- a/sound/soc/codecs/cs4271.c
+++ b/sound/soc/codecs/cs4271.c
@@ -639,7 +639,7 @@ static int cs4271_codec_remove(struct snd_soc_codec *codec)
639 return 0; 639 return 0;
640}; 640};
641 641
642static struct snd_soc_codec_driver soc_codec_dev_cs4271 = { 642static const struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
643 .probe = cs4271_codec_probe, 643 .probe = cs4271_codec_probe,
644 .remove = cs4271_codec_remove, 644 .remove = cs4271_codec_remove,
645 .suspend = cs4271_soc_suspend, 645 .suspend = cs4271_soc_suspend,
diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c
index 96cfe38943cd..f8072f1897d4 100644
--- a/sound/soc/codecs/cs42l51.c
+++ b/sound/soc/codecs/cs42l51.c
@@ -504,7 +504,7 @@ static int cs42l51_codec_probe(struct snd_soc_codec *codec)
504 return 0; 504 return 0;
505} 505}
506 506
507static struct snd_soc_codec_driver soc_codec_device_cs42l51 = { 507static const struct snd_soc_codec_driver soc_codec_device_cs42l51 = {
508 .probe = cs42l51_codec_probe, 508 .probe = cs42l51_codec_probe,
509 509
510 .component_driver = { 510 .component_driver = {
diff --git a/sound/soc/codecs/cs4349.c b/sound/soc/codecs/cs4349.c
index 231ca935cdf3..0a749c79ef57 100644
--- a/sound/soc/codecs/cs4349.c
+++ b/sound/soc/codecs/cs4349.c
@@ -255,7 +255,7 @@ static struct snd_soc_dai_driver cs4349_dai = {
255 .symmetric_rates = 1, 255 .symmetric_rates = 1,
256}; 256};
257 257
258static struct snd_soc_codec_driver soc_codec_dev_cs4349 = { 258static const struct snd_soc_codec_driver soc_codec_dev_cs4349 = {
259 .component_driver = { 259 .component_driver = {
260 .controls = cs4349_snd_controls, 260 .controls = cs4349_snd_controls,
261 .num_controls = ARRAY_SIZE(cs4349_snd_controls), 261 .num_controls = ARRAY_SIZE(cs4349_snd_controls),
diff --git a/sound/soc/codecs/cs47l24.c b/sound/soc/codecs/cs47l24.c
index 47e6fddef92b..d323caa9c816 100644
--- a/sound/soc/codecs/cs47l24.c
+++ b/sound/soc/codecs/cs47l24.c
@@ -1183,7 +1183,7 @@ static struct regmap *cs47l24_get_regmap(struct device *dev)
1183 return priv->core.arizona->regmap; 1183 return priv->core.arizona->regmap;
1184} 1184}
1185 1185
1186static struct snd_soc_codec_driver soc_codec_dev_cs47l24 = { 1186static const struct snd_soc_codec_driver soc_codec_dev_cs47l24 = {
1187 .probe = cs47l24_codec_probe, 1187 .probe = cs47l24_codec_probe,
1188 .remove = cs47l24_codec_remove, 1188 .remove = cs47l24_codec_remove,
1189 .get_regmap = cs47l24_get_regmap, 1189 .get_regmap = cs47l24_get_regmap,
diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
index 06933a5d0a75..da4ee5633778 100644
--- a/sound/soc/codecs/cs53l30.c
+++ b/sound/soc/codecs/cs53l30.c
@@ -892,7 +892,7 @@ static int cs53l30_codec_probe(struct snd_soc_codec *codec)
892 return 0; 892 return 0;
893} 893}
894 894
895static struct snd_soc_codec_driver cs53l30_driver = { 895static const struct snd_soc_codec_driver cs53l30_driver = {
896 .probe = cs53l30_codec_probe, 896 .probe = cs53l30_codec_probe,
897 .set_bias_level = cs53l30_set_bias_level, 897 .set_bias_level = cs53l30_set_bias_level,
898 .idle_bias_off = true, 898 .idle_bias_off = true,
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c
index 2c12471e42a6..46b1fbb66eba 100644
--- a/sound/soc/codecs/cx20442.c
+++ b/sound/soc/codecs/cx20442.c
@@ -398,7 +398,7 @@ static int cx20442_codec_remove(struct snd_soc_codec *codec)
398 398
399static const u8 cx20442_reg; 399static const u8 cx20442_reg;
400 400
401static struct snd_soc_codec_driver cx20442_codec_dev = { 401static const struct snd_soc_codec_driver cx20442_codec_dev = {
402 .probe = cx20442_codec_probe, 402 .probe = cx20442_codec_probe,
403 .remove = cx20442_codec_remove, 403 .remove = cx20442_codec_remove,
404 .set_bias_level = cx20442_set_bias_level, 404 .set_bias_level = cx20442_set_bias_level,
diff --git a/sound/soc/codecs/da7210.c b/sound/soc/codecs/da7210.c
index 17053dfc94cf..1af443ccbc51 100644
--- a/sound/soc/codecs/da7210.c
+++ b/sound/soc/codecs/da7210.c
@@ -1164,7 +1164,7 @@ static int da7210_probe(struct snd_soc_codec *codec)
1164 return 0; 1164 return 0;
1165} 1165}
1166 1166
1167static struct snd_soc_codec_driver soc_codec_dev_da7210 = { 1167static const struct snd_soc_codec_driver soc_codec_dev_da7210 = {
1168 .probe = da7210_probe, 1168 .probe = da7210_probe,
1169 1169
1170 .component_driver = { 1170 .component_driver = {
diff --git a/sound/soc/codecs/da7213.c b/sound/soc/codecs/da7213.c
index c3e11897f8ae..cc0b2d2eaf15 100644
--- a/sound/soc/codecs/da7213.c
+++ b/sound/soc/codecs/da7213.c
@@ -1787,7 +1787,7 @@ static int da7213_probe(struct snd_soc_codec *codec)
1787 return 0; 1787 return 0;
1788} 1788}
1789 1789
1790static struct snd_soc_codec_driver soc_codec_dev_da7213 = { 1790static const struct snd_soc_codec_driver soc_codec_dev_da7213 = {
1791 .probe = da7213_probe, 1791 .probe = da7213_probe,
1792 .set_bias_level = da7213_set_bias_level, 1792 .set_bias_level = da7213_set_bias_level,
1793 1793
diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c
index 6e1940eb0653..b2d42ec1dcd9 100644
--- a/sound/soc/codecs/da7218.c
+++ b/sound/soc/codecs/da7218.c
@@ -3035,7 +3035,7 @@ static int da7218_resume(struct snd_soc_codec *codec)
3035#define da7218_resume NULL 3035#define da7218_resume NULL
3036#endif 3036#endif
3037 3037
3038static struct snd_soc_codec_driver soc_codec_dev_da7218 = { 3038static const struct snd_soc_codec_driver soc_codec_dev_da7218 = {
3039 .probe = da7218_probe, 3039 .probe = da7218_probe,
3040 .remove = da7218_remove, 3040 .remove = da7218_remove,
3041 .suspend = da7218_suspend, 3041 .suspend = da7218_suspend,
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index f71d72c22bfc..6f088536df32 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -1891,7 +1891,7 @@ static int da7219_resume(struct snd_soc_codec *codec)
1891#define da7219_resume NULL 1891#define da7219_resume NULL
1892#endif 1892#endif
1893 1893
1894static struct snd_soc_codec_driver soc_codec_dev_da7219 = { 1894static const struct snd_soc_codec_driver soc_codec_dev_da7219 = {
1895 .probe = da7219_probe, 1895 .probe = da7219_probe,
1896 .remove = da7219_remove, 1896 .remove = da7219_remove,
1897 .suspend = da7219_suspend, 1897 .suspend = da7219_suspend,
diff --git a/sound/soc/codecs/da732x.c b/sound/soc/codecs/da732x.c
index c1cc1c1c28f2..83db4d23c90b 100644
--- a/sound/soc/codecs/da732x.c
+++ b/sound/soc/codecs/da732x.c
@@ -1499,7 +1499,7 @@ static int da732x_set_bias_level(struct snd_soc_codec *codec,
1499 return 0; 1499 return 0;
1500} 1500}
1501 1501
1502static struct snd_soc_codec_driver soc_codec_dev_da732x = { 1502static const struct snd_soc_codec_driver soc_codec_dev_da732x = {
1503 .set_bias_level = da732x_set_bias_level, 1503 .set_bias_level = da732x_set_bias_level,
1504 .component_driver = { 1504 .component_driver = {
1505 .controls = da732x_snd_controls, 1505 .controls = da732x_snd_controls,
diff --git a/sound/soc/codecs/da9055.c b/sound/soc/codecs/da9055.c
index 4efb5f897a0c..bd7faaee5802 100644
--- a/sound/soc/codecs/da9055.c
+++ b/sound/soc/codecs/da9055.c
@@ -1451,7 +1451,7 @@ static int da9055_probe(struct snd_soc_codec *codec)
1451 return 0; 1451 return 0;
1452} 1452}
1453 1453
1454static struct snd_soc_codec_driver soc_codec_dev_da9055 = { 1454static const struct snd_soc_codec_driver soc_codec_dev_da9055 = {
1455 .probe = da9055_probe, 1455 .probe = da9055_probe,
1456 .set_bias_level = da9055_set_bias_level, 1456 .set_bias_level = da9055_set_bias_level,
1457 1457
diff --git a/sound/soc/codecs/dmic.c b/sound/soc/codecs/dmic.c
index c82b9dc41e9a..6fe6c0ac4f0b 100644
--- a/sound/soc/codecs/dmic.c
+++ b/sound/soc/codecs/dmic.c
@@ -50,7 +50,7 @@ static const struct snd_soc_dapm_route intercon[] = {
50 {"DMIC AIF", NULL, "DMic"}, 50 {"DMIC AIF", NULL, "DMic"},
51}; 51};
52 52
53static struct snd_soc_codec_driver soc_dmic = { 53static const struct snd_soc_codec_driver soc_dmic = {
54 .component_driver = { 54 .component_driver = {
55 .dapm_widgets = dmic_dapm_widgets, 55 .dapm_widgets = dmic_dapm_widgets,
56 .num_dapm_widgets = ARRAY_SIZE(dmic_dapm_widgets), 56 .num_dapm_widgets = ARRAY_SIZE(dmic_dapm_widgets),
diff --git a/sound/soc/codecs/es7134.c b/sound/soc/codecs/es7134.c
index 25ede825d349..3869025754d8 100644
--- a/sound/soc/codecs/es7134.c
+++ b/sound/soc/codecs/es7134.c
@@ -69,7 +69,7 @@ static const struct snd_soc_dapm_route es7134_dapm_routes[] = {
69 { "AOUTR", NULL, "DAC" }, 69 { "AOUTR", NULL, "DAC" },
70}; 70};
71 71
72static struct snd_soc_codec_driver es7134_codec_driver = { 72static const struct snd_soc_codec_driver es7134_codec_driver = {
73 .component_driver = { 73 .component_driver = {
74 .dapm_widgets = es7134_dapm_widgets, 74 .dapm_widgets = es7134_dapm_widgets,
75 .num_dapm_widgets = ARRAY_SIZE(es7134_dapm_widgets), 75 .num_dapm_widgets = ARRAY_SIZE(es7134_dapm_widgets),
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c
index ecc02449c569..4f35af6a5d3a 100644
--- a/sound/soc/codecs/es8316.c
+++ b/sound/soc/codecs/es8316.c
@@ -554,7 +554,7 @@ static int es8316_probe(struct snd_soc_codec *codec)
554 return 0; 554 return 0;
555} 555}
556 556
557static struct snd_soc_codec_driver soc_codec_dev_es8316 = { 557static const struct snd_soc_codec_driver soc_codec_dev_es8316 = {
558 .probe = es8316_probe, 558 .probe = es8316_probe,
559 .idle_bias_off = true, 559 .idle_bias_off = true,
560 560
diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c
index ed7cc42d1ee2..bcdb8914ec16 100644
--- a/sound/soc/codecs/es8328.c
+++ b/sound/soc/codecs/es8328.c
@@ -830,7 +830,7 @@ const struct regmap_config es8328_regmap_config = {
830}; 830};
831EXPORT_SYMBOL_GPL(es8328_regmap_config); 831EXPORT_SYMBOL_GPL(es8328_regmap_config);
832 832
833static struct snd_soc_codec_driver es8328_codec_driver = { 833static const struct snd_soc_codec_driver es8328_codec_driver = {
834 .probe = es8328_codec_probe, 834 .probe = es8328_codec_probe,
835 .suspend = es8328_suspend, 835 .suspend = es8328_suspend,
836 .resume = es8328_resume, 836 .resume = es8328_resume,
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index e6de50acefd4..e808f94bf8d1 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -1858,7 +1858,7 @@ static void hdmi_codec_complete(struct device *dev)
1858#define hdmi_codec_complete NULL 1858#define hdmi_codec_complete NULL
1859#endif 1859#endif
1860 1860
1861static struct snd_soc_codec_driver hdmi_hda_codec = { 1861static const struct snd_soc_codec_driver hdmi_hda_codec = {
1862 .probe = hdmi_codec_probe, 1862 .probe = hdmi_codec_probe,
1863 .remove = hdmi_codec_remove, 1863 .remove = hdmi_codec_remove,
1864 .idle_bias_off = true, 1864 .idle_bias_off = true,
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
index 509ab513b4b2..f288404f0a61 100644
--- a/sound/soc/codecs/hdmi-codec.c
+++ b/sound/soc/codecs/hdmi-codec.c
@@ -733,7 +733,7 @@ static int hdmi_of_xlate_dai_id(struct snd_soc_component *component,
733 return ret; 733 return ret;
734} 734}
735 735
736static struct snd_soc_codec_driver hdmi_codec = { 736static const struct snd_soc_codec_driver hdmi_codec = {
737 .component_driver = { 737 .component_driver = {
738 .dapm_widgets = hdmi_widgets, 738 .dapm_widgets = hdmi_widgets,
739 .num_dapm_widgets = ARRAY_SIZE(hdmi_widgets), 739 .num_dapm_widgets = ARRAY_SIZE(hdmi_widgets),
diff --git a/sound/soc/codecs/ics43432.c b/sound/soc/codecs/ics43432.c
index dd850b93938d..651206273f36 100644
--- a/sound/soc/codecs/ics43432.c
+++ b/sound/soc/codecs/ics43432.c
@@ -37,7 +37,7 @@ static struct snd_soc_dai_driver ics43432_dai = {
37 }, 37 },
38}; 38};
39 39
40static struct snd_soc_codec_driver ics43432_codec_driver = { 40static const struct snd_soc_codec_driver ics43432_codec_driver = {
41}; 41};
42 42
43static int ics43432_probe(struct platform_device *pdev) 43static int ics43432_probe(struct platform_device *pdev)
diff --git a/sound/soc/codecs/inno_rk3036.c b/sound/soc/codecs/inno_rk3036.c
index b918ba5c8ce5..64b0be94bea3 100644
--- a/sound/soc/codecs/inno_rk3036.c
+++ b/sound/soc/codecs/inno_rk3036.c
@@ -376,7 +376,7 @@ static int rk3036_codec_set_bias_level(struct snd_soc_codec *codec,
376 return 0; 376 return 0;
377} 377}
378 378
379static struct snd_soc_codec_driver rk3036_codec_driver = { 379static const struct snd_soc_codec_driver rk3036_codec_driver = {
380 .probe = rk3036_codec_probe, 380 .probe = rk3036_codec_probe,
381 .remove = rk3036_codec_remove, 381 .remove = rk3036_codec_remove,
382 .set_bias_level = rk3036_codec_set_bias_level, 382 .set_bias_level = rk3036_codec_set_bias_level,
diff --git a/sound/soc/codecs/isabelle.c b/sound/soc/codecs/isabelle.c
index a4b0eded984a..5ca99280ae00 100644
--- a/sound/soc/codecs/isabelle.c
+++ b/sound/soc/codecs/isabelle.c
@@ -1087,7 +1087,7 @@ static struct snd_soc_dai_driver isabelle_dai[] = {
1087 }, 1087 },
1088}; 1088};
1089 1089
1090static struct snd_soc_codec_driver soc_codec_dev_isabelle = { 1090static const struct snd_soc_codec_driver soc_codec_dev_isabelle = {
1091 .set_bias_level = isabelle_set_bias_level, 1091 .set_bias_level = isabelle_set_bias_level,
1092 .component_driver = { 1092 .component_driver = {
1093 .controls = isabelle_snd_controls, 1093 .controls = isabelle_snd_controls,
diff --git a/sound/soc/codecs/jz4740.c b/sound/soc/codecs/jz4740.c
index 0290fab383da..6324ccdc8a5c 100644
--- a/sound/soc/codecs/jz4740.c
+++ b/sound/soc/codecs/jz4740.c
@@ -293,7 +293,7 @@ static int jz4740_codec_dev_probe(struct snd_soc_codec *codec)
293 return 0; 293 return 0;
294} 294}
295 295
296static struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = { 296static const struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = {
297 .probe = jz4740_codec_dev_probe, 297 .probe = jz4740_codec_dev_probe,
298 .set_bias_level = jz4740_codec_set_bias_level, 298 .set_bias_level = jz4740_codec_set_bias_level,
299 .suspend_bias_off = true, 299 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c
index 8d413c2677cc..41e09d1287b8 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -1389,7 +1389,7 @@ static struct snd_soc_dai_driver lm49453_dai[] = {
1389 }, 1389 },
1390}; 1390};
1391 1391
1392static struct snd_soc_codec_driver soc_codec_dev_lm49453 = { 1392static const struct snd_soc_codec_driver soc_codec_dev_lm49453 = {
1393 .set_bias_level = lm49453_set_bias_level, 1393 .set_bias_level = lm49453_set_bias_level,
1394 .component_driver = { 1394 .component_driver = {
1395 .controls = lm49453_snd_controls, 1395 .controls = lm49453_snd_controls,
diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 72f77455582e..f0bb830874e5 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -1698,7 +1698,7 @@ static int max98088_remove(struct snd_soc_codec *codec)
1698 return 0; 1698 return 0;
1699} 1699}
1700 1700
1701static struct snd_soc_codec_driver soc_codec_dev_max98088 = { 1701static const struct snd_soc_codec_driver soc_codec_dev_max98088 = {
1702 .probe = max98088_probe, 1702 .probe = max98088_probe,
1703 .remove = max98088_remove, 1703 .remove = max98088_remove,
1704 .set_bias_level = max98088_set_bias_level, 1704 .set_bias_level = max98088_set_bias_level,
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c
index 66828480d484..13bcfb1ef9b4 100644
--- a/sound/soc/codecs/max98090.c
+++ b/sound/soc/codecs/max98090.c
@@ -2499,7 +2499,7 @@ static void max98090_seq_notifier(struct snd_soc_dapm_context *dapm,
2499 } 2499 }
2500} 2500}
2501 2501
2502static struct snd_soc_codec_driver soc_codec_dev_max98090 = { 2502static const struct snd_soc_codec_driver soc_codec_dev_max98090 = {
2503 .probe = max98090_probe, 2503 .probe = max98090_probe,
2504 .remove = max98090_remove, 2504 .remove = max98090_remove,
2505 .seq_notifier = max98090_seq_notifier, 2505 .seq_notifier = max98090_seq_notifier,
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c
index 6f8a757876ed..5ead87d2ab1d 100644
--- a/sound/soc/codecs/max98095.c
+++ b/sound/soc/codecs/max98095.c
@@ -2102,7 +2102,7 @@ static int max98095_remove(struct snd_soc_codec *codec)
2102 return 0; 2102 return 0;
2103} 2103}
2104 2104
2105static struct snd_soc_codec_driver soc_codec_dev_max98095 = { 2105static const struct snd_soc_codec_driver soc_codec_dev_max98095 = {
2106 .probe = max98095_probe, 2106 .probe = max98095_probe,
2107 .remove = max98095_remove, 2107 .remove = max98095_remove,
2108 .suspend = max98095_suspend, 2108 .suspend = max98095_suspend,
diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c
index 6a6b68a4cb52..426ed2dae6ca 100644
--- a/sound/soc/codecs/max98357a.c
+++ b/sound/soc/codecs/max98357a.c
@@ -72,7 +72,7 @@ static int max98357a_codec_probe(struct snd_soc_codec *codec)
72 return 0; 72 return 0;
73} 73}
74 74
75static struct snd_soc_codec_driver max98357a_codec_driver = { 75static const struct snd_soc_codec_driver max98357a_codec_driver = {
76 .probe = max98357a_codec_probe, 76 .probe = max98357a_codec_probe,
77 .component_driver = { 77 .component_driver = {
78 .dapm_widgets = max98357a_dapm_widgets, 78 .dapm_widgets = max98357a_dapm_widgets,
diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c
index 0610840733d1..a3dfc918c278 100644
--- a/sound/soc/codecs/max9850.c
+++ b/sound/soc/codecs/max9850.c
@@ -301,7 +301,7 @@ static int max9850_probe(struct snd_soc_codec *codec)
301 return 0; 301 return 0;
302} 302}
303 303
304static struct snd_soc_codec_driver soc_codec_dev_max9850 = { 304static const struct snd_soc_codec_driver soc_codec_dev_max9850 = {
305 .probe = max9850_probe, 305 .probe = max9850_probe,
306 .set_bias_level = max9850_set_bias_level, 306 .set_bias_level = max9850_set_bias_level,
307 .suspend_bias_off = true, 307 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c
index 499bdbfd0a2d..a2dc6a47f466 100644
--- a/sound/soc/codecs/max9860.c
+++ b/sound/soc/codecs/max9860.c
@@ -534,7 +534,7 @@ static int max9860_set_bias_level(struct snd_soc_codec *codec,
534 return 0; 534 return 0;
535} 535}
536 536
537static struct snd_soc_codec_driver max9860_codec_driver = { 537static const struct snd_soc_codec_driver max9860_codec_driver = {
538 .set_bias_level = max9860_set_bias_level, 538 .set_bias_level = max9860_set_bias_level,
539 .idle_bias_off = true, 539 .idle_bias_off = true,
540 540
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 2a40a69a7513..6c0c0d6e8f3c 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -413,7 +413,7 @@ static int max9867_probe(struct snd_soc_codec *codec)
413 return 0; 413 return 0;
414} 414}
415 415
416static struct snd_soc_codec_driver max9867_codec = { 416static const struct snd_soc_codec_driver max9867_codec = {
417 .probe = max9867_probe, 417 .probe = max9867_probe,
418 .component_driver = { 418 .component_driver = {
419 .controls = max9867_snd_controls, 419 .controls = max9867_snd_controls,
diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c
index 1eff7e0b092e..7a39bfb9e0f9 100644
--- a/sound/soc/codecs/max98926.c
+++ b/sound/soc/codecs/max98926.c
@@ -496,7 +496,7 @@ static int max98926_probe(struct snd_soc_codec *codec)
496 return 0; 496 return 0;
497} 497}
498 498
499static struct snd_soc_codec_driver soc_codec_dev_max98926 = { 499static const struct snd_soc_codec_driver soc_codec_dev_max98926 = {
500 .probe = max98926_probe, 500 .probe = max98926_probe,
501 .component_driver = { 501 .component_driver = {
502 .controls = max98926_snd_controls, 502 .controls = max98926_snd_controls,
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 90562703dcfd..4fd8d1dc4eef 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -733,7 +733,7 @@ static struct regmap *mc13783_get_regmap(struct device *dev)
733 return dev_get_regmap(dev->parent, NULL); 733 return dev_get_regmap(dev->parent, NULL);
734} 734}
735 735
736static struct snd_soc_codec_driver soc_codec_dev_mc13783 = { 736static const struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
737 .probe = mc13783_probe, 737 .probe = mc13783_probe,
738 .remove = mc13783_remove, 738 .remove = mc13783_remove,
739 .get_regmap = mc13783_get_regmap, 739 .get_regmap = mc13783_get_regmap,
diff --git a/sound/soc/codecs/ml26124.c b/sound/soc/codecs/ml26124.c
index 69e5e18880c5..5cc960d8211e 100644
--- a/sound/soc/codecs/ml26124.c
+++ b/sound/soc/codecs/ml26124.c
@@ -537,7 +537,7 @@ static int ml26124_probe(struct snd_soc_codec *codec)
537 return 0; 537 return 0;
538} 538}
539 539
540static struct snd_soc_codec_driver soc_codec_dev_ml26124 = { 540static const struct snd_soc_codec_driver soc_codec_dev_ml26124 = {
541 .probe = ml26124_probe, 541 .probe = ml26124_probe,
542 .set_bias_level = ml26124_set_bias_level, 542 .set_bias_level = ml26124_set_bias_level,
543 .suspend_bias_off = true, 543 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/msm8916-wcd-analog.c b/sound/soc/codecs/msm8916-wcd-analog.c
index a78802920c3c..4cc52cecf3b7 100644
--- a/sound/soc/codecs/msm8916-wcd-analog.c
+++ b/sound/soc/codecs/msm8916-wcd-analog.c
@@ -785,7 +785,7 @@ static struct snd_soc_dai_driver pm8916_wcd_analog_dai[] = {
785 }, 785 },
786}; 786};
787 787
788static struct snd_soc_codec_driver pm8916_wcd_analog = { 788static const struct snd_soc_codec_driver pm8916_wcd_analog = {
789 .probe = pm8916_wcd_analog_probe, 789 .probe = pm8916_wcd_analog_probe,
790 .remove = pm8916_wcd_analog_remove, 790 .remove = pm8916_wcd_analog_remove,
791 .get_regmap = pm8916_get_regmap, 791 .get_regmap = pm8916_get_regmap,
diff --git a/sound/soc/codecs/msm8916-wcd-digital.c b/sound/soc/codecs/msm8916-wcd-digital.c
index 661cd6dd5473..43a915c725a0 100644
--- a/sound/soc/codecs/msm8916-wcd-digital.c
+++ b/sound/soc/codecs/msm8916-wcd-digital.c
@@ -830,7 +830,7 @@ static struct snd_soc_dai_driver msm8916_wcd_digital_dai[] = {
830 }, 830 },
831}; 831};
832 832
833static struct snd_soc_codec_driver msm8916_wcd_digital = { 833static const struct snd_soc_codec_driver msm8916_wcd_digital = {
834 .probe = msm8916_wcd_digital_codec_probe, 834 .probe = msm8916_wcd_digital_codec_probe,
835 .set_sysclk = msm8916_wcd_digital_codec_set_sysclk, 835 .set_sysclk = msm8916_wcd_digital_codec_set_sysclk,
836 .component_driver = { 836 .component_driver = {
diff --git a/sound/soc/codecs/nau8540.c b/sound/soc/codecs/nau8540.c
index c8bcb1db966d..f9c9933acffb 100644
--- a/sound/soc/codecs/nau8540.c
+++ b/sound/soc/codecs/nau8540.c
@@ -735,7 +735,7 @@ static int __maybe_unused nau8540_resume(struct snd_soc_codec *codec)
735 return 0; 735 return 0;
736} 736}
737 737
738static struct snd_soc_codec_driver nau8540_codec_driver = { 738static const struct snd_soc_codec_driver nau8540_codec_driver = {
739 .set_sysclk = nau8540_set_sysclk, 739 .set_sysclk = nau8540_set_sysclk,
740 .set_pll = nau8540_set_pll, 740 .set_pll = nau8540_set_pll,
741 .suspend = nau8540_suspend, 741 .suspend = nau8540_suspend,
diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c
index e45518629968..c8e2451ae0a3 100644
--- a/sound/soc/codecs/nau8810.c
+++ b/sound/soc/codecs/nau8810.c
@@ -808,7 +808,7 @@ static const struct regmap_config nau8810_regmap_config = {
808 .num_reg_defaults = ARRAY_SIZE(nau8810_reg_defaults), 808 .num_reg_defaults = ARRAY_SIZE(nau8810_reg_defaults),
809}; 809};
810 810
811static struct snd_soc_codec_driver nau8810_codec_driver = { 811static const struct snd_soc_codec_driver nau8810_codec_driver = {
812 .set_bias_level = nau8810_set_bias_level, 812 .set_bias_level = nau8810_set_bias_level,
813 .suspend_bias_off = true, 813 .suspend_bias_off = true,
814 814
diff --git a/sound/soc/codecs/nau8824.c b/sound/soc/codecs/nau8824.c
index 3a309b18035e..0240759f951c 100644
--- a/sound/soc/codecs/nau8824.c
+++ b/sound/soc/codecs/nau8824.c
@@ -1469,7 +1469,7 @@ static int __maybe_unused nau8824_resume(struct snd_soc_codec *codec)
1469 return 0; 1469 return 0;
1470} 1470}
1471 1471
1472static struct snd_soc_codec_driver nau8824_codec_driver = { 1472static const struct snd_soc_codec_driver nau8824_codec_driver = {
1473 .probe = nau8824_codec_probe, 1473 .probe = nau8824_codec_probe,
1474 .set_sysclk = nau8824_set_sysclk, 1474 .set_sysclk = nau8824_set_sysclk,
1475 .set_pll = nau8824_set_pll, 1475 .set_pll = nau8824_set_pll,
diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c
index 46a30eaa7ace..000aa79314fa 100644
--- a/sound/soc/codecs/nau8825.c
+++ b/sound/soc/codecs/nau8825.c
@@ -2388,7 +2388,7 @@ static int __maybe_unused nau8825_resume(struct snd_soc_codec *codec)
2388 return 0; 2388 return 0;
2389} 2389}
2390 2390
2391static struct snd_soc_codec_driver nau8825_codec_driver = { 2391static const struct snd_soc_codec_driver nau8825_codec_driver = {
2392 .probe = nau8825_codec_probe, 2392 .probe = nau8825_codec_probe,
2393 .remove = nau8825_codec_remove, 2393 .remove = nau8825_codec_remove,
2394 .set_sysclk = nau8825_set_sysclk, 2394 .set_sysclk = nau8825_set_sysclk,
diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c
index 0b14efab6280..c7e28dd2e815 100644
--- a/sound/soc/codecs/pcm1681.c
+++ b/sound/soc/codecs/pcm1681.c
@@ -288,7 +288,7 @@ static const struct regmap_config pcm1681_regmap = {
288 .readable_reg = pcm1681_accessible_reg, 288 .readable_reg = pcm1681_accessible_reg,
289}; 289};
290 290
291static struct snd_soc_codec_driver soc_codec_dev_pcm1681 = { 291static const struct snd_soc_codec_driver soc_codec_dev_pcm1681 = {
292 .component_driver = { 292 .component_driver = {
293 .controls = pcm1681_controls, 293 .controls = pcm1681_controls,
294 .num_controls = ARRAY_SIZE(pcm1681_controls), 294 .num_controls = ARRAY_SIZE(pcm1681_controls),
diff --git a/sound/soc/codecs/pcm179x.c b/sound/soc/codecs/pcm179x.c
index b813a154ddd9..82a3d9db32cb 100644
--- a/sound/soc/codecs/pcm179x.c
+++ b/sound/soc/codecs/pcm179x.c
@@ -205,7 +205,7 @@ const struct regmap_config pcm179x_regmap_config = {
205}; 205};
206EXPORT_SYMBOL_GPL(pcm179x_regmap_config); 206EXPORT_SYMBOL_GPL(pcm179x_regmap_config);
207 207
208static struct snd_soc_codec_driver soc_codec_dev_pcm179x = { 208static const struct snd_soc_codec_driver soc_codec_dev_pcm179x = {
209 .component_driver = { 209 .component_driver = {
210 .controls = pcm179x_controls, 210 .controls = pcm179x_controls,
211 .num_controls = ARRAY_SIZE(pcm179x_controls), 211 .num_controls = ARRAY_SIZE(pcm179x_controls),
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c
index 708af05486f6..e59d8ffb93bd 100644
--- a/sound/soc/codecs/pcm3008.c
+++ b/sound/soc/codecs/pcm3008.c
@@ -98,7 +98,7 @@ static struct snd_soc_dai_driver pcm3008_dai = {
98 }, 98 },
99}; 99};
100 100
101static struct snd_soc_codec_driver soc_codec_dev_pcm3008 = { 101static const struct snd_soc_codec_driver soc_codec_dev_pcm3008 = {
102 .component_driver = { 102 .component_driver = {
103 .dapm_widgets = pcm3008_dapm_widgets, 103 .dapm_widgets = pcm3008_dapm_widgets,
104 .num_dapm_widgets = ARRAY_SIZE(pcm3008_dapm_widgets), 104 .num_dapm_widgets = ARRAY_SIZE(pcm3008_dapm_widgets),
diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
index 72b19e62f626..f1005a31c709 100644
--- a/sound/soc/codecs/pcm512x.c
+++ b/sound/soc/codecs/pcm512x.c
@@ -1344,7 +1344,7 @@ static struct snd_soc_dai_driver pcm512x_dai = {
1344 .ops = &pcm512x_dai_ops, 1344 .ops = &pcm512x_dai_ops,
1345}; 1345};
1346 1346
1347static struct snd_soc_codec_driver pcm512x_codec_driver = { 1347static const struct snd_soc_codec_driver pcm512x_codec_driver = {
1348 .set_bias_level = pcm512x_set_bias_level, 1348 .set_bias_level = pcm512x_set_bias_level,
1349 .idle_bias_off = true, 1349 .idle_bias_off = true,
1350 1350
diff --git a/sound/soc/codecs/rt274.c b/sound/soc/codecs/rt274.c
index fb683ffc4e03..58cfe244f81e 100644
--- a/sound/soc/codecs/rt274.c
+++ b/sound/soc/codecs/rt274.c
@@ -1055,7 +1055,7 @@ static struct snd_soc_dai_driver rt274_dai[] = {
1055 }, 1055 },
1056}; 1056};
1057 1057
1058static struct snd_soc_codec_driver soc_codec_dev_rt274 = { 1058static const struct snd_soc_codec_driver soc_codec_dev_rt274 = {
1059 .probe = rt274_probe, 1059 .probe = rt274_probe,
1060 .remove = rt274_remove, 1060 .remove = rt274_remove,
1061 .suspend = rt274_suspend, 1061 .suspend = rt274_suspend,
diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c
index 7899a2cdeb42..af6325c78292 100644
--- a/sound/soc/codecs/rt286.c
+++ b/sound/soc/codecs/rt286.c
@@ -1046,7 +1046,7 @@ static struct snd_soc_dai_driver rt286_dai[] = {
1046 1046
1047}; 1047};
1048 1048
1049static struct snd_soc_codec_driver soc_codec_dev_rt286 = { 1049static const struct snd_soc_codec_driver soc_codec_dev_rt286 = {
1050 .probe = rt286_probe, 1050 .probe = rt286_probe,
1051 .remove = rt286_remove, 1051 .remove = rt286_remove,
1052 .suspend = rt286_suspend, 1052 .suspend = rt286_suspend,
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index d9e96e65e1c4..ce963768449f 100644
--- a/sound/soc/codecs/rt298.c
+++ b/sound/soc/codecs/rt298.c
@@ -1113,7 +1113,7 @@ static struct snd_soc_dai_driver rt298_dai[] = {
1113 1113
1114}; 1114};
1115 1115
1116static struct snd_soc_codec_driver soc_codec_dev_rt298 = { 1116static const struct snd_soc_codec_driver soc_codec_dev_rt298 = {
1117 .probe = rt298_probe, 1117 .probe = rt298_probe,
1118 .remove = rt298_remove, 1118 .remove = rt298_remove,
1119 .suspend = rt298_suspend, 1119 .suspend = rt298_suspend,
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index 1b6796c4c471..7a1b36f6596a 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -1042,7 +1042,7 @@ struct snd_soc_dai_driver rt5514_dai[] = {
1042 } 1042 }
1043}; 1043};
1044 1044
1045static struct snd_soc_codec_driver soc_codec_dev_rt5514 = { 1045static const struct snd_soc_codec_driver soc_codec_dev_rt5514 = {
1046 .probe = rt5514_probe, 1046 .probe = rt5514_probe,
1047 .idle_bias_off = true, 1047 .idle_bias_off = true,
1048 .set_bias_level = rt5514_set_bias_level, 1048 .set_bias_level = rt5514_set_bias_level,
diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index 7d6e0823f98f..3c5f555ae6d0 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1294,7 +1294,7 @@ static struct snd_soc_dai_driver rt5616_dai[] = {
1294 }, 1294 },
1295}; 1295};
1296 1296
1297static struct snd_soc_codec_driver soc_codec_dev_rt5616 = { 1297static const struct snd_soc_codec_driver soc_codec_dev_rt5616 = {
1298 .probe = rt5616_probe, 1298 .probe = rt5616_probe,
1299 .suspend = rt5616_suspend, 1299 .suspend = rt5616_suspend,
1300 .resume = rt5616_resume, 1300 .resume = rt5616_resume,
diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c
index 0e418089c053..55b04c55fb4b 100644
--- a/sound/soc/codecs/rt5631.c
+++ b/sound/soc/codecs/rt5631.c
@@ -1653,7 +1653,7 @@ static struct snd_soc_dai_driver rt5631_dai[] = {
1653 }, 1653 },
1654}; 1654};
1655 1655
1656static struct snd_soc_codec_driver soc_codec_dev_rt5631 = { 1656static const struct snd_soc_codec_driver soc_codec_dev_rt5631 = {
1657 .probe = rt5631_probe, 1657 .probe = rt5631_probe,
1658 .set_bias_level = rt5631_set_bias_level, 1658 .set_bias_level = rt5631_set_bias_level,
1659 .suspend_bias_off = true, 1659 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index 1584ccc3a87b..438fe52a12df 100644
--- a/sound/soc/codecs/rt5640.c
+++ b/sound/soc/codecs/rt5640.c
@@ -2259,7 +2259,7 @@ static struct snd_soc_dai_driver rt5640_dai[] = {
2259 }, 2259 },
2260}; 2260};
2261 2261
2262static struct snd_soc_codec_driver soc_codec_dev_rt5640 = { 2262static const struct snd_soc_codec_driver soc_codec_dev_rt5640 = {
2263 .probe = rt5640_probe, 2263 .probe = rt5640_probe,
2264 .remove = rt5640_remove, 2264 .remove = rt5640_remove,
2265 .suspend = rt5640_suspend, 2265 .suspend = rt5640_suspend,
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index 9ec58166f7c4..ce31d0dcf894 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3473,7 +3473,7 @@ static struct snd_soc_dai_driver rt5645_dai[] = {
3473 }, 3473 },
3474}; 3474};
3475 3475
3476static struct snd_soc_codec_driver soc_codec_dev_rt5645 = { 3476static const struct snd_soc_codec_driver soc_codec_dev_rt5645 = {
3477 .probe = rt5645_probe, 3477 .probe = rt5645_probe,
3478 .remove = rt5645_remove, 3478 .remove = rt5645_remove,
3479 .suspend = rt5645_suspend, 3479 .suspend = rt5645_suspend,
diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c
index db05b60d5002..da60b28ba3df 100644
--- a/sound/soc/codecs/rt5651.c
+++ b/sound/soc/codecs/rt5651.c
@@ -1664,7 +1664,7 @@ static struct snd_soc_dai_driver rt5651_dai[] = {
1664 }, 1664 },
1665}; 1665};
1666 1666
1667static struct snd_soc_codec_driver soc_codec_dev_rt5651 = { 1667static const struct snd_soc_codec_driver soc_codec_dev_rt5651 = {
1668 .probe = rt5651_probe, 1668 .probe = rt5651_probe,
1669 .suspend = rt5651_suspend, 1669 .suspend = rt5651_suspend,
1670 .resume = rt5651_resume, 1670 .resume = rt5651_resume,
diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c
index 1b7060850340..e8018fce7e4b 100644
--- a/sound/soc/codecs/rt5659.c
+++ b/sound/soc/codecs/rt5659.c
@@ -3730,7 +3730,7 @@ static struct snd_soc_dai_driver rt5659_dai[] = {
3730 }, 3730 },
3731}; 3731};
3732 3732
3733static struct snd_soc_codec_driver soc_codec_dev_rt5659 = { 3733static const struct snd_soc_codec_driver soc_codec_dev_rt5659 = {
3734 .probe = rt5659_probe, 3734 .probe = rt5659_probe,
3735 .remove = rt5659_remove, 3735 .remove = rt5659_remove,
3736 .suspend = rt5659_suspend, 3736 .suspend = rt5659_suspend,
diff --git a/sound/soc/codecs/rt5660.c b/sound/soc/codecs/rt5660.c
index c93490d77f2a..d22ef00e0d96 100644
--- a/sound/soc/codecs/rt5660.c
+++ b/sound/soc/codecs/rt5660.c
@@ -1197,7 +1197,7 @@ static struct snd_soc_dai_driver rt5660_dai[] = {
1197 }, 1197 },
1198}; 1198};
1199 1199
1200static struct snd_soc_codec_driver soc_codec_dev_rt5660 = { 1200static const struct snd_soc_codec_driver soc_codec_dev_rt5660 = {
1201 .probe = rt5660_probe, 1201 .probe = rt5660_probe,
1202 .remove = rt5660_remove, 1202 .remove = rt5660_remove,
1203 .suspend = rt5660_suspend, 1203 .suspend = rt5660_suspend,
diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/codecs/rt5663.c
index a33202affeb1..ebc5e3b2b62b 100644
--- a/sound/soc/codecs/rt5663.c
+++ b/sound/soc/codecs/rt5663.c
@@ -2891,7 +2891,7 @@ static struct snd_soc_dai_driver rt5663_dai[] = {
2891 }, 2891 },
2892}; 2892};
2893 2893
2894static struct snd_soc_codec_driver soc_codec_dev_rt5663 = { 2894static const struct snd_soc_codec_driver soc_codec_dev_rt5663 = {
2895 .probe = rt5663_probe, 2895 .probe = rt5663_probe,
2896 .remove = rt5663_remove, 2896 .remove = rt5663_remove,
2897 .suspend = rt5663_suspend, 2897 .suspend = rt5663_suspend,
diff --git a/sound/soc/codecs/rt5665.c b/sound/soc/codecs/rt5665.c
index 370ed54d1e15..2c405456d89f 100644
--- a/sound/soc/codecs/rt5665.c
+++ b/sound/soc/codecs/rt5665.c
@@ -4562,7 +4562,7 @@ static struct snd_soc_dai_driver rt5665_dai[] = {
4562 }, 4562 },
4563}; 4563};
4564 4564
4565static struct snd_soc_codec_driver soc_codec_dev_rt5665 = { 4565static const struct snd_soc_codec_driver soc_codec_dev_rt5665 = {
4566 .probe = rt5665_probe, 4566 .probe = rt5665_probe,
4567 .remove = rt5665_remove, 4567 .remove = rt5665_remove,
4568 .suspend = rt5665_suspend, 4568 .suspend = rt5665_suspend,
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c
index 0ec7985ed306..52a6ce8f0b39 100644
--- a/sound/soc/codecs/rt5670.c
+++ b/sound/soc/codecs/rt5670.c
@@ -2765,7 +2765,7 @@ static struct snd_soc_dai_driver rt5670_dai[] = {
2765 }, 2765 },
2766}; 2766};
2767 2767
2768static struct snd_soc_codec_driver soc_codec_dev_rt5670 = { 2768static const struct snd_soc_codec_driver soc_codec_dev_rt5670 = {
2769 .probe = rt5670_probe, 2769 .probe = rt5670_probe,
2770 .remove = rt5670_remove, 2770 .remove = rt5670_remove,
2771 .suspend = rt5670_suspend, 2771 .suspend = rt5670_suspend,
diff --git a/sound/soc/codecs/rt5677.c b/sound/soc/codecs/rt5677.c
index 36e530a36c82..ce9b65d466e8 100644
--- a/sound/soc/codecs/rt5677.c
+++ b/sound/soc/codecs/rt5677.c
@@ -4968,7 +4968,7 @@ static struct snd_soc_dai_driver rt5677_dai[] = {
4968 }, 4968 },
4969}; 4969};
4970 4970
4971static struct snd_soc_codec_driver soc_codec_dev_rt5677 = { 4971static const struct snd_soc_codec_driver soc_codec_dev_rt5677 = {
4972 .probe = rt5677_probe, 4972 .probe = rt5677_probe,
4973 .remove = rt5677_remove, 4973 .remove = rt5677_remove,
4974 .suspend = rt5677_suspend, 4974 .suspend = rt5677_suspend,
diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 8f6814c1eb6b..68e7020b2875 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -1248,7 +1248,7 @@ static int sgtl5000_remove(struct snd_soc_codec *codec)
1248 return 0; 1248 return 0;
1249} 1249}
1250 1250
1251static struct snd_soc_codec_driver sgtl5000_driver = { 1251static const struct snd_soc_codec_driver sgtl5000_driver = {
1252 .probe = sgtl5000_probe, 1252 .probe = sgtl5000_probe,
1253 .remove = sgtl5000_remove, 1253 .remove = sgtl5000_remove,
1254 .set_bias_level = sgtl5000_set_bias_level, 1254 .set_bias_level = sgtl5000_set_bias_level,
diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c
index 5344f4aa8fde..354dc0d64f11 100644
--- a/sound/soc/codecs/si476x.c
+++ b/sound/soc/codecs/si476x.c
@@ -236,7 +236,7 @@ static struct regmap *si476x_get_regmap(struct device *dev)
236 return dev_get_regmap(dev->parent, NULL); 236 return dev_get_regmap(dev->parent, NULL);
237} 237}
238 238
239static struct snd_soc_codec_driver soc_codec_dev_si476x = { 239static const struct snd_soc_codec_driver soc_codec_dev_si476x = {
240 .get_regmap = si476x_get_regmap, 240 .get_regmap = si476x_get_regmap,
241 .component_driver = { 241 .component_driver = {
242 .dapm_widgets = si476x_dapm_widgets, 242 .dapm_widgets = si476x_dapm_widgets,
diff --git a/sound/soc/codecs/sirf-audio-codec.c b/sound/soc/codecs/sirf-audio-codec.c
index 6bfd25c289d1..50bc22266ecb 100644
--- a/sound/soc/codecs/sirf-audio-codec.c
+++ b/sound/soc/codecs/sirf-audio-codec.c
@@ -429,7 +429,7 @@ static int sirf_audio_codec_remove(struct snd_soc_codec *codec)
429 return 0; 429 return 0;
430} 430}
431 431
432static struct snd_soc_codec_driver soc_codec_device_sirf_audio_codec = { 432static const struct snd_soc_codec_driver soc_codec_device_sirf_audio_codec = {
433 .probe = sirf_audio_codec_probe, 433 .probe = sirf_audio_codec_probe,
434 .remove = sirf_audio_codec_remove, 434 .remove = sirf_audio_codec_remove,
435 .dapm_widgets = sirf_audio_codec_dapm_widgets, 435 .dapm_widgets = sirf_audio_codec_dapm_widgets,
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index eae54c37cff9..887923e68849 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -883,7 +883,7 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
883 return 0; 883 return 0;
884} 884}
885 885
886static struct snd_soc_codec_driver sn95031_codec = { 886static const struct snd_soc_codec_driver sn95031_codec = {
887 .probe = sn95031_codec_probe, 887 .probe = sn95031_codec_probe,
888 .set_bias_level = sn95031_set_vaud_bias, 888 .set_bias_level = sn95031_set_vaud_bias,
889 .idle_bias_off = true, 889 .idle_bias_off = true,
diff --git a/sound/soc/codecs/spdif_receiver.c b/sound/soc/codecs/spdif_receiver.c
index 234f87b54838..7acd05140a81 100644
--- a/sound/soc/codecs/spdif_receiver.c
+++ b/sound/soc/codecs/spdif_receiver.c
@@ -37,7 +37,7 @@ static const struct snd_soc_dapm_route dir_routes[] = {
37 SNDRV_PCM_FMTBIT_S24_LE | \ 37 SNDRV_PCM_FMTBIT_S24_LE | \
38 SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE) 38 SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
39 39
40static struct snd_soc_codec_driver soc_codec_spdif_dir = { 40static const struct snd_soc_codec_driver soc_codec_spdif_dir = {
41 .component_driver = { 41 .component_driver = {
42 .dapm_widgets = dir_widgets, 42 .dapm_widgets = dir_widgets,
43 .num_dapm_widgets = ARRAY_SIZE(dir_widgets), 43 .num_dapm_widgets = ARRAY_SIZE(dir_widgets),
diff --git a/sound/soc/codecs/spdif_transmitter.c b/sound/soc/codecs/spdif_transmitter.c
index ee367536a498..063a64ff82d3 100644
--- a/sound/soc/codecs/spdif_transmitter.c
+++ b/sound/soc/codecs/spdif_transmitter.c
@@ -37,7 +37,7 @@ static const struct snd_soc_dapm_route dit_routes[] = {
37 { "spdif-out", NULL, "Playback" }, 37 { "spdif-out", NULL, "Playback" },
38}; 38};
39 39
40static struct snd_soc_codec_driver soc_codec_spdif_dit = { 40static const struct snd_soc_codec_driver soc_codec_spdif_dit = {
41 .component_driver = { 41 .component_driver = {
42 .dapm_widgets = dit_widgets, 42 .dapm_widgets = dit_widgets,
43 .num_dapm_widgets = ARRAY_SIZE(dit_widgets), 43 .num_dapm_widgets = ARRAY_SIZE(dit_widgets),
diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c
index 38a85f3adc80..15486fd16269 100644
--- a/sound/soc/codecs/ssm2518.c
+++ b/sound/soc/codecs/ssm2518.c
@@ -710,7 +710,7 @@ static int ssm2518_set_sysclk(struct snd_soc_codec *codec, int clk_id,
710 SSM2518_POWER1_NO_BCLK, val); 710 SSM2518_POWER1_NO_BCLK, val);
711} 711}
712 712
713static struct snd_soc_codec_driver ssm2518_codec_driver = { 713static const struct snd_soc_codec_driver ssm2518_codec_driver = {
714 .set_bias_level = ssm2518_set_bias_level, 714 .set_bias_level = ssm2518_set_bias_level,
715 .set_sysclk = ssm2518_set_sysclk, 715 .set_sysclk = ssm2518_set_sysclk,
716 .idle_bias_off = true, 716 .idle_bias_off = true,
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index 993bde29ca1b..9b341c23f62b 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -591,7 +591,7 @@ static int ssm260x_codec_probe(struct snd_soc_codec *codec)
591 return ret; 591 return ret;
592} 592}
593 593
594static struct snd_soc_codec_driver soc_codec_dev_ssm2602 = { 594static const struct snd_soc_codec_driver soc_codec_dev_ssm2602 = {
595 .probe = ssm260x_codec_probe, 595 .probe = ssm260x_codec_probe,
596 .resume = ssm2602_resume, 596 .resume = ssm2602_resume,
597 .set_bias_level = ssm2602_set_bias_level, 597 .set_bias_level = ssm2602_set_bias_level,
diff --git a/sound/soc/codecs/ssm4567.c b/sound/soc/codecs/ssm4567.c
index a622623e8558..4afeddef7728 100644
--- a/sound/soc/codecs/ssm4567.c
+++ b/sound/soc/codecs/ssm4567.c
@@ -417,7 +417,7 @@ static struct snd_soc_dai_driver ssm4567_dai = {
417 .ops = &ssm4567_dai_ops, 417 .ops = &ssm4567_dai_ops,
418}; 418};
419 419
420static struct snd_soc_codec_driver ssm4567_codec_driver = { 420static const struct snd_soc_codec_driver ssm4567_codec_driver = {
421 .set_bias_level = ssm4567_set_bias_level, 421 .set_bias_level = ssm4567_set_bias_level,
422 .idle_bias_off = true, 422 .idle_bias_off = true,
423 423
diff --git a/sound/soc/codecs/stac9766.c b/sound/soc/codecs/stac9766.c
index 9de7fe8af255..c66363a2cac7 100644
--- a/sound/soc/codecs/stac9766.c
+++ b/sound/soc/codecs/stac9766.c
@@ -307,7 +307,7 @@ static int stac9766_codec_remove(struct snd_soc_codec *codec)
307 return 0; 307 return 0;
308} 308}
309 309
310static struct snd_soc_codec_driver soc_codec_dev_stac9766 = { 310static const struct snd_soc_codec_driver soc_codec_dev_stac9766 = {
311 .component_driver = { 311 .component_driver = {
312 .controls = stac9766_snd_ac97_controls, 312 .controls = stac9766_snd_ac97_controls,
313 .num_controls = ARRAY_SIZE(stac9766_snd_ac97_controls), 313 .num_controls = ARRAY_SIZE(stac9766_snd_ac97_controls),
diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c
index 8840f72f3c4a..49cf9bc32eb6 100644
--- a/sound/soc/codecs/tas2552.c
+++ b/sound/soc/codecs/tas2552.c
@@ -660,7 +660,7 @@ static int tas2552_resume(struct snd_soc_codec *codec)
660#define tas2552_resume NULL 660#define tas2552_resume NULL
661#endif 661#endif
662 662
663static struct snd_soc_codec_driver soc_codec_dev_tas2552 = { 663static const struct snd_soc_codec_driver soc_codec_dev_tas2552 = {
664 .probe = tas2552_codec_probe, 664 .probe = tas2552_codec_probe,
665 .remove = tas2552_codec_remove, 665 .remove = tas2552_codec_remove,
666 .suspend = tas2552_suspend, 666 .suspend = tas2552_suspend,
diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c
index b7de857abb16..199272d5cb6a 100644
--- a/sound/soc/codecs/tas5086.c
+++ b/sound/soc/codecs/tas5086.c
@@ -885,7 +885,7 @@ static int tas5086_remove(struct snd_soc_codec *codec)
885 return 0; 885 return 0;
886}; 886};
887 887
888static struct snd_soc_codec_driver soc_codec_dev_tas5086 = { 888static const struct snd_soc_codec_driver soc_codec_dev_tas5086 = {
889 .probe = tas5086_probe, 889 .probe = tas5086_probe,
890 .remove = tas5086_remove, 890 .remove = tas5086_remove,
891 .suspend = tas5086_soc_suspend, 891 .suspend = tas5086_soc_suspend,
diff --git a/sound/soc/codecs/tas5720.c b/sound/soc/codecs/tas5720.c
index c65b917598d2..d14b78b1917b 100644
--- a/sound/soc/codecs/tas5720.c
+++ b/sound/soc/codecs/tas5720.c
@@ -483,7 +483,7 @@ static const struct snd_soc_dapm_route tas5720_audio_map[] = {
483 { "OUT", NULL, "DAC" }, 483 { "OUT", NULL, "DAC" },
484}; 484};
485 485
486static struct snd_soc_codec_driver soc_codec_dev_tas5720 = { 486static const struct snd_soc_codec_driver soc_codec_dev_tas5720 = {
487 .probe = tas5720_codec_probe, 487 .probe = tas5720_codec_probe,
488 .remove = tas5720_codec_remove, 488 .remove = tas5720_codec_remove,
489 .suspend = tas5720_suspend, 489 .suspend = tas5720_suspend,
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c
index 628a8eeaab68..3d42138a7974 100644
--- a/sound/soc/codecs/tlv320aic23.c
+++ b/sound/soc/codecs/tlv320aic23.c
@@ -576,7 +576,7 @@ static int tlv320aic23_codec_probe(struct snd_soc_codec *codec)
576 return 0; 576 return 0;
577} 577}
578 578
579static struct snd_soc_codec_driver soc_codec_dev_tlv320aic23 = { 579static const struct snd_soc_codec_driver soc_codec_dev_tlv320aic23 = {
580 .probe = tlv320aic23_codec_probe, 580 .probe = tlv320aic23_codec_probe,
581 .resume = tlv320aic23_resume, 581 .resume = tlv320aic23_resume,
582 .set_bias_level = tlv320aic23_set_bias_level, 582 .set_bias_level = tlv320aic23_set_bias_level,
diff --git a/sound/soc/codecs/tlv320aic26.c b/sound/soc/codecs/tlv320aic26.c
index 14aa96d41719..89421caaeb70 100644
--- a/sound/soc/codecs/tlv320aic26.c
+++ b/sound/soc/codecs/tlv320aic26.c
@@ -319,7 +319,7 @@ static int aic26_probe(struct snd_soc_codec *codec)
319 return 0; 319 return 0;
320} 320}
321 321
322static struct snd_soc_codec_driver aic26_soc_codec_dev = { 322static const struct snd_soc_codec_driver aic26_soc_codec_dev = {
323 .probe = aic26_probe, 323 .probe = aic26_probe,
324 .component_driver = { 324 .component_driver = {
325 .controls = aic26_snd_controls, 325 .controls = aic26_snd_controls,
diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c
index d7d03c92cb8a..54a87a905eb6 100644
--- a/sound/soc/codecs/tlv320aic31xx.c
+++ b/sound/soc/codecs/tlv320aic31xx.c
@@ -1185,7 +1185,7 @@ static int aic31xx_codec_remove(struct snd_soc_codec *codec)
1185 return 0; 1185 return 0;
1186} 1186}
1187 1187
1188static struct snd_soc_codec_driver soc_codec_driver_aic31xx = { 1188static const struct snd_soc_codec_driver soc_codec_driver_aic31xx = {
1189 .probe = aic31xx_codec_probe, 1189 .probe = aic31xx_codec_probe,
1190 .remove = aic31xx_codec_remove, 1190 .remove = aic31xx_codec_remove,
1191 .set_bias_level = aic31xx_set_bias_level, 1191 .set_bias_level = aic31xx_set_bias_level,
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 28fdfc5ec544..ccfc955321ae 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -792,7 +792,7 @@ static int aic32x4_codec_probe(struct snd_soc_codec *codec)
792 return 0; 792 return 0;
793} 793}
794 794
795static struct snd_soc_codec_driver soc_codec_dev_aic32x4 = { 795static const struct snd_soc_codec_driver soc_codec_dev_aic32x4 = {
796 .probe = aic32x4_codec_probe, 796 .probe = aic32x4_codec_probe,
797 .set_bias_level = aic32x4_set_bias_level, 797 .set_bias_level = aic32x4_set_bias_level,
798 .suspend_bias_off = true, 798 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/tlv320aic3x.c b/sound/soc/codecs/tlv320aic3x.c
index 29bf8c81ae02..405f4602888a 100644
--- a/sound/soc/codecs/tlv320aic3x.c
+++ b/sound/soc/codecs/tlv320aic3x.c
@@ -1684,7 +1684,7 @@ static int aic3x_remove(struct snd_soc_codec *codec)
1684 return 0; 1684 return 0;
1685} 1685}
1686 1686
1687static struct snd_soc_codec_driver soc_codec_dev_aic3x = { 1687static const struct snd_soc_codec_driver soc_codec_dev_aic3x = {
1688 .set_bias_level = aic3x_set_bias_level, 1688 .set_bias_level = aic3x_set_bias_level,
1689 .idle_bias_off = true, 1689 .idle_bias_off = true,
1690 .probe = aic3x_probe, 1690 .probe = aic3x_probe,
diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c
index 7bcf01efdf9a..5b94a151539c 100644
--- a/sound/soc/codecs/tlv320dac33.c
+++ b/sound/soc/codecs/tlv320dac33.c
@@ -1433,7 +1433,7 @@ static int dac33_soc_remove(struct snd_soc_codec *codec)
1433 return 0; 1433 return 0;
1434} 1434}
1435 1435
1436static struct snd_soc_codec_driver soc_codec_dev_tlv320dac33 = { 1436static const struct snd_soc_codec_driver soc_codec_dev_tlv320dac33 = {
1437 .read = dac33_read_reg_cache, 1437 .read = dac33_read_reg_cache,
1438 .write = dac33_write_locked, 1438 .write = dac33_write_locked,
1439 .set_bias_level = dac33_set_bias_level, 1439 .set_bias_level = dac33_set_bias_level,
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index a2104d68169d..d439c4c6fe50 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -2191,7 +2191,7 @@ static int twl4030_soc_remove(struct snd_soc_codec *codec)
2191 return 0; 2191 return 0;
2192} 2192}
2193 2193
2194static struct snd_soc_codec_driver soc_codec_dev_twl4030 = { 2194static const struct snd_soc_codec_driver soc_codec_dev_twl4030 = {
2195 .probe = twl4030_soc_probe, 2195 .probe = twl4030_soc_probe,
2196 .remove = twl4030_soc_remove, 2196 .remove = twl4030_soc_remove,
2197 .read = twl4030_read, 2197 .read = twl4030_read,
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c
index 2b6ad09e0886..0dc21f7e0af9 100644
--- a/sound/soc/codecs/twl6040.c
+++ b/sound/soc/codecs/twl6040.c
@@ -1155,7 +1155,7 @@ static int twl6040_remove(struct snd_soc_codec *codec)
1155 return 0; 1155 return 0;
1156} 1156}
1157 1157
1158static struct snd_soc_codec_driver soc_codec_dev_twl6040 = { 1158static const struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
1159 .probe = twl6040_probe, 1159 .probe = twl6040_probe,
1160 .remove = twl6040_remove, 1160 .remove = twl6040_remove,
1161 .read = twl6040_read, 1161 .read = twl6040_read,
diff --git a/sound/soc/codecs/uda134x.c b/sound/soc/codecs/uda134x.c
index 5fdee874406d..77c9cc4467b8 100644
--- a/sound/soc/codecs/uda134x.c
+++ b/sound/soc/codecs/uda134x.c
@@ -518,7 +518,7 @@ static int uda134x_soc_probe(struct snd_soc_codec *codec)
518 return 0; 518 return 0;
519} 519}
520 520
521static struct snd_soc_codec_driver soc_codec_dev_uda134x = { 521static const struct snd_soc_codec_driver soc_codec_dev_uda134x = {
522 .probe = uda134x_soc_probe, 522 .probe = uda134x_soc_probe,
523 .set_bias_level = uda134x_set_bias_level, 523 .set_bias_level = uda134x_set_bias_level,
524 .suspend_bias_off = true, 524 .suspend_bias_off = true,
diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c
index 61cdc79840e7..926c81ae8185 100644
--- a/sound/soc/codecs/uda1380.c
+++ b/sound/soc/codecs/uda1380.c
@@ -720,7 +720,7 @@ static int uda1380_probe(struct snd_soc_codec *codec)
720 return 0; 720 return 0;
721} 721}
722 722
723static struct snd_soc_codec_driver soc_codec_dev_uda1380 = { 723static const struct snd_soc_codec_driver soc_codec_dev_uda1380 = {
724 .probe = uda1380_probe, 724 .probe = uda1380_probe,
725 .read = uda1380_read_reg_cache, 725 .read = uda1380_read_reg_cache,
726 .write = uda1380_write, 726 .write = uda1380_write,
diff --git a/sound/soc/codecs/wl1273.c b/sound/soc/codecs/wl1273.c
index fcffb6e707d9..942f1644973e 100644
--- a/sound/soc/codecs/wl1273.c
+++ b/sound/soc/codecs/wl1273.c
@@ -480,7 +480,7 @@ static int wl1273_remove(struct snd_soc_codec *codec)
480 return 0; 480 return 0;
481} 481}
482 482
483static struct snd_soc_codec_driver soc_codec_dev_wl1273 = { 483static const struct snd_soc_codec_driver soc_codec_dev_wl1273 = {
484 .probe = wl1273_probe, 484 .probe = wl1273_probe,
485 .remove = wl1273_remove, 485 .remove = wl1273_remove,
486 486
diff --git a/sound/soc/codecs/zx_aud96p22.c b/sound/soc/codecs/zx_aud96p22.c
index 032fb7cf6cbd..36d0a7087a54 100644
--- a/sound/soc/codecs/zx_aud96p22.c
+++ b/sound/soc/codecs/zx_aud96p22.c
@@ -261,7 +261,7 @@ static const struct snd_soc_dapm_route aud96p22_dapm_routes[] = {
261 { "LINEOUTMN", NULL, "LD2" }, 261 { "LINEOUTMN", NULL, "LD2" },
262}; 262};
263 263
264static struct snd_soc_codec_driver aud96p22_driver = { 264static const struct snd_soc_codec_driver aud96p22_driver = {
265 .component_driver = { 265 .component_driver = {
266 .controls = aud96p22_snd_controls, 266 .controls = aud96p22_snd_controls,
267 .num_controls = ARRAY_SIZE(aud96p22_snd_controls), 267 .num_controls = ARRAY_SIZE(aud96p22_snd_controls),