ASoC: codecs: add const to snd_soc_codec_driver structures
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 3 Aug 2017 16:00:19 +0000 (21:30 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 10 Aug 2017 15:10:50 +0000 (16:10 +0100)
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>
109 files changed:
sound/soc/codecs/88pm860x-codec.c
sound/soc/codecs/ab8500-codec.c
sound/soc/codecs/ac97.c
sound/soc/codecs/ad1836.c
sound/soc/codecs/ad193x.c
sound/soc/codecs/ad1980.c
sound/soc/codecs/ad73311.c
sound/soc/codecs/adau1373.c
sound/soc/codecs/adau1701.c
sound/soc/codecs/adau1977.c
sound/soc/codecs/adav80x.c
sound/soc/codecs/ads117x.c
sound/soc/codecs/ak4104.c
sound/soc/codecs/ak4535.c
sound/soc/codecs/ak4554.c
sound/soc/codecs/ak4613.c
sound/soc/codecs/ak4641.c
sound/soc/codecs/ak4642.c
sound/soc/codecs/ak4671.c
sound/soc/codecs/ak5386.c
sound/soc/codecs/alc5623.c
sound/soc/codecs/bt-sco.c
sound/soc/codecs/cq93vc.c
sound/soc/codecs/cs35l33.c
sound/soc/codecs/cs35l34.c
sound/soc/codecs/cs35l35.c
sound/soc/codecs/cs4271.c
sound/soc/codecs/cs42l51.c
sound/soc/codecs/cs4349.c
sound/soc/codecs/cs47l24.c
sound/soc/codecs/cs53l30.c
sound/soc/codecs/cx20442.c
sound/soc/codecs/da7210.c
sound/soc/codecs/da7213.c
sound/soc/codecs/da7218.c
sound/soc/codecs/da7219.c
sound/soc/codecs/da732x.c
sound/soc/codecs/da9055.c
sound/soc/codecs/dmic.c
sound/soc/codecs/es7134.c
sound/soc/codecs/es8316.c
sound/soc/codecs/es8328.c
sound/soc/codecs/hdac_hdmi.c
sound/soc/codecs/hdmi-codec.c
sound/soc/codecs/ics43432.c
sound/soc/codecs/inno_rk3036.c
sound/soc/codecs/isabelle.c
sound/soc/codecs/jz4740.c
sound/soc/codecs/lm49453.c
sound/soc/codecs/max98088.c
sound/soc/codecs/max98090.c
sound/soc/codecs/max98095.c
sound/soc/codecs/max98357a.c
sound/soc/codecs/max9850.c
sound/soc/codecs/max9860.c
sound/soc/codecs/max9867.c
sound/soc/codecs/max98926.c
sound/soc/codecs/mc13783.c
sound/soc/codecs/ml26124.c
sound/soc/codecs/msm8916-wcd-analog.c
sound/soc/codecs/msm8916-wcd-digital.c
sound/soc/codecs/nau8540.c
sound/soc/codecs/nau8810.c
sound/soc/codecs/nau8824.c
sound/soc/codecs/nau8825.c
sound/soc/codecs/pcm1681.c
sound/soc/codecs/pcm179x.c
sound/soc/codecs/pcm3008.c
sound/soc/codecs/pcm512x.c
sound/soc/codecs/rt274.c
sound/soc/codecs/rt286.c
sound/soc/codecs/rt298.c
sound/soc/codecs/rt5514.c
sound/soc/codecs/rt5616.c
sound/soc/codecs/rt5631.c
sound/soc/codecs/rt5640.c
sound/soc/codecs/rt5645.c
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5659.c
sound/soc/codecs/rt5660.c
sound/soc/codecs/rt5663.c
sound/soc/codecs/rt5665.c
sound/soc/codecs/rt5670.c
sound/soc/codecs/rt5677.c
sound/soc/codecs/sgtl5000.c
sound/soc/codecs/si476x.c
sound/soc/codecs/sirf-audio-codec.c
sound/soc/codecs/sn95031.c
sound/soc/codecs/spdif_receiver.c
sound/soc/codecs/spdif_transmitter.c
sound/soc/codecs/ssm2518.c
sound/soc/codecs/ssm2602.c
sound/soc/codecs/ssm4567.c
sound/soc/codecs/stac9766.c
sound/soc/codecs/tas2552.c
sound/soc/codecs/tas5086.c
sound/soc/codecs/tas5720.c
sound/soc/codecs/tlv320aic23.c
sound/soc/codecs/tlv320aic26.c
sound/soc/codecs/tlv320aic31xx.c
sound/soc/codecs/tlv320aic32x4.c
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/tlv320dac33.c
sound/soc/codecs/twl4030.c
sound/soc/codecs/twl6040.c
sound/soc/codecs/uda134x.c
sound/soc/codecs/uda1380.c
sound/soc/codecs/wl1273.c
sound/soc/codecs/zx_aud96p22.c

index b013a4c62b6334dd44ae4b833aef9b6de35cfa21..848c5fe49bc7a46592c80086dd6a77974d0fd795 100644 (file)
@@ -1355,7 +1355,7 @@ static struct regmap *pm860x_get_regmap(struct device *dev)
        return pm860x->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_pm860x = {
+static const struct snd_soc_codec_driver soc_codec_dev_pm860x = {
        .probe          = pm860x_probe,
        .remove         = pm860x_remove,
        .set_bias_level = pm860x_set_bias_level,
index 312b2a11abb6a124ccf66778dec2ee7548f76486..006627b8c3a840d7823b74de64053dc281385435 100644 (file)
@@ -2523,7 +2523,7 @@ static int ab8500_codec_probe(struct snd_soc_codec *codec)
        return status;
 }
 
-static struct snd_soc_codec_driver ab8500_codec_driver = {
+static const struct snd_soc_codec_driver ab8500_codec_driver = {
        .probe =                ab8500_codec_probe,
        .component_driver = {
                .controls =             ab8500_ctrls,
index f7f04c6be01e78402e6901fe14ed35fa7754921b..440b4ce543764be82f354e42fc45f6a5ad4b3c90 100644 (file)
@@ -112,7 +112,7 @@ static int ac97_soc_resume(struct snd_soc_codec *codec)
 #define ac97_soc_resume NULL
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_ac97 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ac97 = {
        .probe =        ac97_soc_probe,
        .suspend =      ac97_soc_suspend,
        .resume =       ac97_soc_resume,
index a478239aadacca6815167c8d1ea8205f34aa035d..d0361caad09e08e51ba2f6f6e0bebc8905be85c9 100644 (file)
@@ -321,7 +321,7 @@ static int ad1836_remove(struct snd_soc_codec *codec)
                AD1836_ADC_SERFMT_MASK, 0);
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ad1836 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ad1836 = {
        .probe = ad1836_probe,
        .remove = ad1836_remove,
        .suspend = ad1836_suspend,
index d643557d89a74d753567ed75821ebb16a0477415..d10988eec0c10a236454dc146956d735e2ec98c6 100644 (file)
@@ -408,7 +408,7 @@ static int ad193x_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ad193x = {
+static const struct snd_soc_codec_driver soc_codec_dev_ad193x = {
        .probe = ad193x_codec_probe,
        .component_driver = {
                .controls               = ad193x_snd_controls,
index b7c1b9f4bf5f9d070e6daaa656a0059e644aff26..ce89bfb42094b4d678d9992bbd3c76e068914015 100644 (file)
@@ -295,7 +295,7 @@ static int ad1980_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ad1980 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ad1980 = {
        .probe =        ad1980_soc_probe,
        .remove =       ad1980_soc_remove,
 
index 3e358a49442d2ded0af95b0ba8dccab006912806..d8d86a0fea605941a8f4295d3fd4cff88eec941b 100644 (file)
@@ -54,7 +54,7 @@ static struct snd_soc_dai_driver ad73311_dai = {
                .formats = SNDRV_PCM_FMTBIT_S16_LE, },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ad73311 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ad73311 = {
        .component_driver = {
                .dapm_widgets           = ad73311_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(ad73311_dapm_widgets),
index 8fa9045571ff44f7b9a698197d8d066e42695e64..a865945d776a4b08f88b0fdd2f1d40ea59c38a1c 100644 (file)
@@ -1458,7 +1458,7 @@ static const struct regmap_config adau1373_regmap_config = {
        .num_reg_defaults = ARRAY_SIZE(adau1373_reg_defaults),
 };
 
-static struct snd_soc_codec_driver adau1373_codec_driver = {
+static const struct snd_soc_codec_driver adau1373_codec_driver = {
        .probe =        adau1373_probe,
        .resume =       adau1373_resume,
        .set_bias_level = adau1373_set_bias_level,
index 3bad1bc8c00a3d93d74c6f419c96f30a479e4afb..805afac8146bbf52bf059df02f2d17a673aad3ae 100644 (file)
@@ -757,7 +757,7 @@ static int adau1701_resume(struct snd_soc_codec *codec)
 #define adau1701_suspend       NULL
 #endif /* CONFIG_PM */
 
-static struct snd_soc_codec_driver adau1701_codec_drv = {
+static const struct snd_soc_codec_driver adau1701_codec_drv = {
        .probe                  = adau1701_probe,
        .remove                 = adau1701_remove,
        .resume                 = adau1701_resume,
index b319db6a69f8dd073fe39a25998b0212cb5d94e2..3292816757656c1919c5c88cdeba6673fed59099 100644 (file)
@@ -867,7 +867,7 @@ static int adau1977_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver adau1977_codec_driver = {
+static const struct snd_soc_codec_driver adau1977_codec_driver = {
        .probe = adau1977_codec_probe,
        .set_bias_level = adau1977_set_bias_level,
        .set_sysclk = adau1977_set_sysclk,
index 6e793ebb588333c7ee39ee851ccb6c66ad746ad3..da7ca81f47cfb46f0a968cc6fcf908735593d115 100644 (file)
@@ -825,7 +825,7 @@ static int adav80x_resume(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver adav80x_codec_driver = {
+static const struct snd_soc_codec_driver adav80x_codec_driver = {
        .probe = adav80x_probe,
        .resume = adav80x_resume,
        .set_bias_level = adav80x_set_bias_level,
index 90c756d183b46168204839e56ae117694116a37c..b7f0057c023951457e3968588f8842ec46cdb491 100644 (file)
@@ -58,7 +58,7 @@ static struct snd_soc_dai_driver ads117x_dai = {
                .formats = ADS117X_FORMATS,},
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ads117x = {
+static const struct snd_soc_codec_driver soc_codec_dev_ads117x = {
        .component_driver = {
                .dapm_widgets           = ads117x_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(ads117x_dapm_widgets),
index 1a9d233c94d00f68f47fdc4313759666559140eb..dbb184118f2e47314c91501428cb8b46c97f7fbc 100644 (file)
@@ -242,7 +242,7 @@ static int ak4104_soc_resume(struct snd_soc_codec *codec)
 #define ak4104_soc_resume      NULL
 #endif /* CONFIG_PM */
 
-static struct snd_soc_codec_driver soc_codec_device_ak4104 = {
+static const struct snd_soc_codec_driver soc_codec_device_ak4104 = {
        .probe = ak4104_probe,
        .remove = ak4104_remove,
        .suspend = ak4104_soc_suspend,
index 66cfffde9a122e5369fb5f6561e730206cfbd6bd..e3c157dc88db3c796030159ae2487f1efb8e7a59 100644 (file)
@@ -390,7 +390,7 @@ static const struct regmap_config ak4535_regmap = {
        .num_reg_defaults = ARRAY_SIZE(ak4535_reg_defaults),
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4535 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4535 = {
        .resume =       ak4535_resume,
        .set_bias_level = ak4535_set_bias_level,
        .suspend_bias_off = true,
index b92c548b9d299048964c63a1daf27351d773f624..0bb4fe5c122a4b17ac19b88df6e5ef0abeb1a837 100644 (file)
@@ -64,7 +64,7 @@ static struct snd_soc_dai_driver ak4554_dai = {
        .symmetric_rates = 1,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4554 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4554 = {
        .component_driver = {
                .dapm_widgets           = ak4554_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(ak4554_dapm_widgets),
index 690edebf029eb53c213ace00c88e39b14c6b3d75..b95bb8b52e51214b6ecbfd8a83a8462e47aea6f3 100644 (file)
@@ -522,7 +522,7 @@ static int ak4613_resume(struct snd_soc_codec *codec)
        return regcache_sync(regmap);
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4613 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4613 = {
        .suspend                = ak4613_suspend,
        .resume                 = ak4613_resume,
        .set_bias_level         = ak4613_set_bias_level,
index ebdaf56c1d61336d96518f8e4e32aad603cab89c..60142ff32d4f28139bbddc585befed1c0e17532b 100644 (file)
@@ -524,7 +524,7 @@ static struct snd_soc_dai_driver ak4641_dai[] = {
 },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4641 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4641 = {
        .component_driver = {
                .controls               = ak4641_snd_controls,
                .num_controls           = ARRAY_SIZE(ak4641_snd_controls),
index 66de8a2013a6b1e5b2c54f9512a18e324ed3b81f..29530c567bd9dd41d09220966618931b7612142f 100644 (file)
@@ -550,7 +550,7 @@ static int ak4642_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4642 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4642 = {
        .probe                  = ak4642_probe,
        .suspend                = ak4642_suspend,
        .resume                 = ak4642_resume,
index 6088afaabf62c56d63a0fea375761e4a247477b0..dcfdff56fc5a1efefaee683251b069285408ba07 100644 (file)
@@ -610,7 +610,7 @@ static struct snd_soc_dai_driver ak4671_dai = {
        .ops = &ak4671_dai_ops,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_ak4671 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ak4671 = {
        .set_bias_level = ak4671_set_bias_level,
        .component_driver = {
                .controls               = ak4671_snd_controls,
index 0ef2df223336700ec1b55c70eb073b0960e2a18d..d0e16c03815cc89228a50f74284cddbf9dfa69cd 100644 (file)
@@ -69,7 +69,7 @@ static int ak5386_soc_resume(struct snd_soc_codec *codec)
 #define ak5386_soc_resume      NULL
 #endif /* CONFIG_PM */
 
-static struct snd_soc_codec_driver soc_codec_ak5386 = {
+static const struct snd_soc_codec_driver soc_codec_ak5386 = {
        .probe = ak5386_soc_probe,
        .remove = ak5386_soc_remove,
        .suspend = ak5386_soc_suspend,
index d2e3a3ef7499bce2d25009a811d9d94a26d4fee3..1db965a93632d8a52835ecf37d55c5963ee9bd4d 100644 (file)
@@ -951,7 +951,7 @@ static int alc5623_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_device_alc5623 = {
+static const struct snd_soc_codec_driver soc_codec_device_alc5623 = {
        .probe = alc5623_probe,
        .suspend = alc5623_suspend,
        .resume = alc5623_resume,
index 8014e697d5407d0b43f3bf03089a349c31e0b03a..806191addb44daedc0fbfca98bbabb0be4be8509 100644 (file)
@@ -62,7 +62,7 @@ static struct snd_soc_dai_driver bt_sco_dai[] = {
        }
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_bt_sco = {
+static const struct snd_soc_codec_driver soc_codec_dev_bt_sco = {
        .component_driver = {
                .dapm_widgets           = bt_sco_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(bt_sco_widgets),
index 7a2d9a2ee4276de62e659f1372224fa84e4cdc73..6ed2cc374768735f88092c0b4e92be720bfe0fce 100644 (file)
@@ -128,7 +128,7 @@ static struct regmap *cq93vc_get_regmap(struct device *dev)
        return davinci_vc->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_cq93vc = {
+static const struct snd_soc_codec_driver soc_codec_dev_cq93vc = {
        .set_bias_level = cq93vc_set_bias_level,
        .get_regmap = cq93vc_get_regmap,
        .component_driver = {
index 6df29fa30fb9d8d17216026b925fb8df1ba7dc3c..61d128b53e14c724037322d2b8cd3e300a5589d5 100644 (file)
@@ -831,7 +831,7 @@ static int cs35l33_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_cs35l33 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs35l33 = {
        .probe = cs35l33_probe,
 
        .set_bias_level = cs35l33_set_bias_level,
index 0a747c66cc6ccc593036775f51ae4eaa050cc850..15d712f4803ed34e97fa0af8e32fcc20f17cc196 100644 (file)
@@ -779,7 +779,7 @@ static int cs35l34_probe(struct snd_soc_codec *codec)
 }
 
 
-static struct snd_soc_codec_driver soc_codec_dev_cs35l34 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs35l34 = {
        .probe = cs35l34_probe,
 
        .component_driver = {
index f1ee184ecab2994424cdca4a6d9a1bbfd526bd5f..129978d1243ebcdd3a1558c1c0f1f0dd2056bdd7 100644 (file)
@@ -1079,7 +1079,7 @@ static int cs35l35_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_cs35l35 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs35l35 = {
        .probe = cs35l35_codec_probe,
        .set_sysclk = cs35l35_codec_set_sysclk,
        .component_driver = {
index d8824773dc29985bbed7f6f52d1646bdee41790b..49a80627af121d9f45d4adc6ffbd8530c553993a 100644 (file)
@@ -639,7 +639,7 @@ static int cs4271_codec_remove(struct snd_soc_codec *codec)
        return 0;
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
        .probe                  = cs4271_codec_probe,
        .remove                 = cs4271_codec_remove,
        .suspend                = cs4271_soc_suspend,
index 96cfe38943cd44aa29885c76fbe48b4b8391d9a3..f8072f1897d4c47a7d91c9c6d00eedffd9ef2fba 100644 (file)
@@ -504,7 +504,7 @@ static int cs42l51_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_device_cs42l51 = {
+static const struct snd_soc_codec_driver soc_codec_device_cs42l51 = {
        .probe = cs42l51_codec_probe,
 
        .component_driver = {
index 231ca935cdf3bdf22e7db0866a0dabfa61084e1e..0a749c79ef579bdd6bcf9688d6a24f784cfdc6db 100644 (file)
@@ -255,7 +255,7 @@ static struct snd_soc_dai_driver cs4349_dai = {
        .symmetric_rates = 1,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_cs4349 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs4349 = {
        .component_driver = {
                .controls               = cs4349_snd_controls,
                .num_controls           = ARRAY_SIZE(cs4349_snd_controls),
index 47e6fddef92b8e7af04e88de54ba04f0409736f6..d323caa9c8162d6101f6a3827cc25c558a6dfd4d 100644 (file)
@@ -1183,7 +1183,7 @@ static struct regmap *cs47l24_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_cs47l24 = {
+static const struct snd_soc_codec_driver soc_codec_dev_cs47l24 = {
        .probe = cs47l24_codec_probe,
        .remove = cs47l24_codec_remove,
        .get_regmap = cs47l24_get_regmap,
index 06933a5d0a75154fef952515b71bdda2a99050d9..da4ee56337787b0e99b177a98391cc5aef6b6816 100644 (file)
@@ -892,7 +892,7 @@ static int cs53l30_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver cs53l30_driver = {
+static const struct snd_soc_codec_driver cs53l30_driver = {
        .probe = cs53l30_codec_probe,
        .set_bias_level = cs53l30_set_bias_level,
        .idle_bias_off = true,
index 2c12471e42a68dd7ed865cd581a1f27728da85ee..46b1fbb66ebaaf2225f87dbe29305f3f8d0178b5 100644 (file)
@@ -398,7 +398,7 @@ static int cx20442_codec_remove(struct snd_soc_codec *codec)
 
 static const u8 cx20442_reg;
 
-static struct snd_soc_codec_driver cx20442_codec_dev = {
+static const struct snd_soc_codec_driver cx20442_codec_dev = {
        .probe =        cx20442_codec_probe,
        .remove =       cx20442_codec_remove,
        .set_bias_level = cx20442_set_bias_level,
index 17053dfc94cf07cafea279351d8382db829add1b..1af443ccbc51531c2039a0e889909a1439635b3f 100644 (file)
@@ -1164,7 +1164,7 @@ static int da7210_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_da7210 = {
+static const struct snd_soc_codec_driver soc_codec_dev_da7210 = {
        .probe                  = da7210_probe,
 
        .component_driver = {
index c3e11897f8aee212215cb8969c13cbe866de2c71..cc0b2d2eaf151cc9a6666badc829d1157875c016 100644 (file)
@@ -1787,7 +1787,7 @@ static int da7213_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_da7213 = {
+static const struct snd_soc_codec_driver soc_codec_dev_da7213 = {
        .probe                  = da7213_probe,
        .set_bias_level         = da7213_set_bias_level,
 
index 6e1940eb0653c720c646710d057c11337a01fb70..b2d42ec1dcd9f7f75e98c04dd35c06351bf3ca7b 100644 (file)
@@ -3035,7 +3035,7 @@ static int da7218_resume(struct snd_soc_codec *codec)
 #define da7218_resume NULL
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_da7218 = {
+static const struct snd_soc_codec_driver soc_codec_dev_da7218 = {
        .probe                  = da7218_probe,
        .remove                 = da7218_remove,
        .suspend                = da7218_suspend,
index f71d72c22bfc1b882a5045b2374110aee2eb1838..6f088536df32ea89014abffb112c4dfefe357fe0 100644 (file)
@@ -1891,7 +1891,7 @@ static int da7219_resume(struct snd_soc_codec *codec)
 #define da7219_resume NULL
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_da7219 = {
+static const struct snd_soc_codec_driver soc_codec_dev_da7219 = {
        .probe                  = da7219_probe,
        .remove                 = da7219_remove,
        .suspend                = da7219_suspend,
index c1cc1c1c28f26d75a24ca0ee792c615996a06d66..83db4d23c90b9590eef0723562c50f52ce0c3ee2 100644 (file)
@@ -1499,7 +1499,7 @@ static int da732x_set_bias_level(struct snd_soc_codec *codec,
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_da732x = {
+static const struct snd_soc_codec_driver soc_codec_dev_da732x = {
        .set_bias_level         = da732x_set_bias_level,
        .component_driver = {
                .controls               = da732x_snd_controls,
index 4efb5f897a0c01943a6b977eb4e4eb269ee55336..bd7faaee5802e619ac25716f1faf7b261ea36fed 100644 (file)
@@ -1451,7 +1451,7 @@ static int da9055_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_da9055 = {
+static const struct snd_soc_codec_driver soc_codec_dev_da9055 = {
        .probe                  = da9055_probe,
        .set_bias_level         = da9055_set_bias_level,
 
index c82b9dc41e9a2b8ab2a3358ca96abc21dfd639cd..6fe6c0ac4f0b8919aa093d6b617113a1599a1a1e 100644 (file)
@@ -50,7 +50,7 @@ static const struct snd_soc_dapm_route intercon[] = {
        {"DMIC AIF", NULL, "DMic"},
 };
 
-static struct snd_soc_codec_driver soc_dmic = {
+static const struct snd_soc_codec_driver soc_dmic = {
        .component_driver = {
                .dapm_widgets           = dmic_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(dmic_dapm_widgets),
index 25ede825d349a4aeefab9ef3899c328d8c8d6d31..3869025754d83ec3848b3b755f79c8c64eed533e 100644 (file)
@@ -69,7 +69,7 @@ static const struct snd_soc_dapm_route es7134_dapm_routes[] = {
        { "AOUTR", NULL, "DAC" },
 };
 
-static struct snd_soc_codec_driver es7134_codec_driver = {
+static const struct snd_soc_codec_driver es7134_codec_driver = {
        .component_driver = {
                .dapm_widgets           = es7134_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(es7134_dapm_widgets),
index ecc02449c569bd479d728aa929fc9093bf0a9fae..4f35af6a5d3acaf6eebc38421d43dd9e1c1ccaea 100644 (file)
@@ -554,7 +554,7 @@ static int es8316_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_es8316 = {
+static const struct snd_soc_codec_driver soc_codec_dev_es8316 = {
        .probe          = es8316_probe,
        .idle_bias_off  = true,
 
index ed7cc42d1ee2c16ece5306beb5f1aca7506dcaf5..bcdb8914ec16b992e26aecb718e430e6e0477e05 100644 (file)
@@ -830,7 +830,7 @@ const struct regmap_config es8328_regmap_config = {
 };
 EXPORT_SYMBOL_GPL(es8328_regmap_config);
 
-static struct snd_soc_codec_driver es8328_codec_driver = {
+static const struct snd_soc_codec_driver es8328_codec_driver = {
        .probe            = es8328_codec_probe,
        .suspend          = es8328_suspend,
        .resume           = es8328_resume,
index e6de50acefd4b4654d769ab52087064962937c01..e808f94bf8d11871dc1db8a182a429b32b04addc 100644 (file)
@@ -1858,7 +1858,7 @@ static void hdmi_codec_complete(struct device *dev)
 #define hdmi_codec_complete NULL
 #endif
 
-static struct snd_soc_codec_driver hdmi_hda_codec = {
+static const struct snd_soc_codec_driver hdmi_hda_codec = {
        .probe          = hdmi_codec_probe,
        .remove         = hdmi_codec_remove,
        .idle_bias_off  = true,
index 509ab513b4b219b850e5501c01572d806fa03532..f288404f0a6134a2c166a195b8e16945d7705ea7 100644 (file)
@@ -733,7 +733,7 @@ static int hdmi_of_xlate_dai_id(struct snd_soc_component *component,
        return ret;
 }
 
-static struct snd_soc_codec_driver hdmi_codec = {
+static const struct snd_soc_codec_driver hdmi_codec = {
        .component_driver = {
                .dapm_widgets           = hdmi_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(hdmi_widgets),
index dd850b93938d53737fe222e3e8c3b0dfee834280..651206273f3675bf519d0d05b4ca7313a4b504ff 100644 (file)
@@ -37,7 +37,7 @@ static struct snd_soc_dai_driver ics43432_dai = {
        },
 };
 
-static struct snd_soc_codec_driver ics43432_codec_driver = {
+static const struct snd_soc_codec_driver ics43432_codec_driver = {
 };
 
 static int ics43432_probe(struct platform_device *pdev)
index b918ba5c8ce5ce73acc35e843241b409113ea292..64b0be94bea32803e98f58dbe9fcfd4268031399 100644 (file)
@@ -376,7 +376,7 @@ static int rk3036_codec_set_bias_level(struct snd_soc_codec *codec,
        return 0;
 }
 
-static struct snd_soc_codec_driver rk3036_codec_driver = {
+static const struct snd_soc_codec_driver rk3036_codec_driver = {
        .probe                  = rk3036_codec_probe,
        .remove                 = rk3036_codec_remove,
        .set_bias_level         = rk3036_codec_set_bias_level,
index a4b0eded984aff2ce711fc70c84545ef3df02fcd..5ca99280ae0097bd59a36df4f6fc1c44ab8427fe 100644 (file)
@@ -1087,7 +1087,7 @@ static struct snd_soc_dai_driver isabelle_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_isabelle = {
+static const struct snd_soc_codec_driver soc_codec_dev_isabelle = {
        .set_bias_level = isabelle_set_bias_level,
        .component_driver = {
                .controls               = isabelle_snd_controls,
index 0290fab383da8864086e7e617051a15b65d3b1e7..6324ccdc8a5c556b00d3d80b81f8fe626743ca41 100644 (file)
@@ -293,7 +293,7 @@ static int jz4740_codec_dev_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = {
+static const struct snd_soc_codec_driver soc_codec_dev_jz4740_codec = {
        .probe = jz4740_codec_dev_probe,
        .set_bias_level = jz4740_codec_set_bias_level,
        .suspend_bias_off = true,
index 8d413c2677ccad5287d06a41d33c586296056985..41e09d1287b8583479b4df23c3db83ddc465ef2e 100644 (file)
@@ -1389,7 +1389,7 @@ static struct snd_soc_dai_driver lm49453_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_lm49453 = {
+static const struct snd_soc_codec_driver soc_codec_dev_lm49453 = {
        .set_bias_level = lm49453_set_bias_level,
        .component_driver = {
                .controls               = lm49453_snd_controls,
index 72f77455582eb4ad4f76c4b0cc1713c7c007177c..f0bb830874e59ab9c2b544e961143c0a4515c6ce 100644 (file)
@@ -1698,7 +1698,7 @@ static int max98088_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_max98088 = {
+static const struct snd_soc_codec_driver soc_codec_dev_max98088 = {
        .probe   = max98088_probe,
        .remove  = max98088_remove,
        .set_bias_level = max98088_set_bias_level,
index 66828480d484ca11912d8b163efe0c51445b155c..13bcfb1ef9b423ceb5fa2ae222340eccaed2ed69 100644 (file)
@@ -2499,7 +2499,7 @@ static void max98090_seq_notifier(struct snd_soc_dapm_context *dapm,
        }
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_max98090 = {
+static const struct snd_soc_codec_driver soc_codec_dev_max98090 = {
        .probe   = max98090_probe,
        .remove  = max98090_remove,
        .seq_notifier = max98090_seq_notifier,
index 6f8a757876ed9c758c2c4719c8d563f18b3e9983..5ead87d2ab1df95cfc8245a3b07aae5fb49b9f83 100644 (file)
@@ -2102,7 +2102,7 @@ static int max98095_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_max98095 = {
+static const struct snd_soc_codec_driver soc_codec_dev_max98095 = {
        .probe   = max98095_probe,
        .remove  = max98095_remove,
        .suspend = max98095_suspend,
index 6a6b68a4cb527fc389b61d6e70524f13f11b3b5a..426ed2dae6ca292bcfd08a283a5b0703717b78e6 100644 (file)
@@ -72,7 +72,7 @@ static int max98357a_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver max98357a_codec_driver = {
+static const struct snd_soc_codec_driver max98357a_codec_driver = {
        .probe                  = max98357a_codec_probe,
        .component_driver = {
                .dapm_widgets           = max98357a_dapm_widgets,
index 0610840733d1629d7fdd12f3dcdcf023681b3c42..a3dfc918c278bda4b41a972c204daa031baed106 100644 (file)
@@ -301,7 +301,7 @@ static int max9850_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_max9850 = {
+static const struct snd_soc_codec_driver soc_codec_dev_max9850 = {
        .probe =        max9850_probe,
        .set_bias_level = max9850_set_bias_level,
        .suspend_bias_off = true,
index 499bdbfd0a2d93e7fa88da23915027a53556b238..a2dc6a47f4664637bef5c302c18758d9b421c954 100644 (file)
@@ -534,7 +534,7 @@ static int max9860_set_bias_level(struct snd_soc_codec *codec,
        return 0;
 }
 
-static struct snd_soc_codec_driver max9860_codec_driver = {
+static const struct snd_soc_codec_driver max9860_codec_driver = {
        .set_bias_level = max9860_set_bias_level,
        .idle_bias_off = true,
 
index 2a40a69a7513817fe65753f774078f26e0aefec6..6c0c0d6e8f3cc835cf7728b572ebdd7b4854d728 100644 (file)
@@ -413,7 +413,7 @@ static int max9867_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver max9867_codec = {
+static const struct snd_soc_codec_driver max9867_codec = {
        .probe = max9867_probe,
        .component_driver = {
                .controls               = max9867_snd_controls,
index 1eff7e0b092e1f5773fc88f7110cb71e37d80e44..7a39bfb9e0f91be14f0eab1050f953626d0877f1 100644 (file)
@@ -496,7 +496,7 @@ static int max98926_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_max98926 = {
+static const struct snd_soc_codec_driver soc_codec_dev_max98926 = {
        .probe  = max98926_probe,
        .component_driver = {
                .controls               = max98926_snd_controls,
index 90562703dcfdb1eb8c3a76c87303457173c7a28b..4fd8d1dc4eefca8624f33819706de3fc79996eb1 100644 (file)
@@ -733,7 +733,7 @@ static struct regmap *mc13783_get_regmap(struct device *dev)
        return dev_get_regmap(dev->parent, NULL);
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
+static const struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
        .probe          = mc13783_probe,
        .remove         = mc13783_remove,
        .get_regmap     = mc13783_get_regmap,
index 69e5e18880c53c35835b0bb8e5b5eb749c0c16b7..5cc960d8211e3c6f8608900456210fe715d3bac5 100644 (file)
@@ -537,7 +537,7 @@ static int ml26124_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ml26124 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ml26124 = {
        .probe =        ml26124_probe,
        .set_bias_level = ml26124_set_bias_level,
        .suspend_bias_off = true,
index a78802920c3cc098af2526a4ba335dba0df5a59f..4cc52cecf3b705815c7ac36bf13ad1d522a809d9 100644 (file)
@@ -785,7 +785,7 @@ static struct snd_soc_dai_driver pm8916_wcd_analog_dai[] = {
               },
 };
 
-static struct snd_soc_codec_driver pm8916_wcd_analog = {
+static const struct snd_soc_codec_driver pm8916_wcd_analog = {
        .probe = pm8916_wcd_analog_probe,
        .remove = pm8916_wcd_analog_remove,
        .get_regmap = pm8916_get_regmap,
index 661cd6dd5473e7f4af3f630420065740c7966e2d..43a915c725a0ae7defe358204059f8510e460da7 100644 (file)
@@ -830,7 +830,7 @@ static struct snd_soc_dai_driver msm8916_wcd_digital_dai[] = {
               },
 };
 
-static struct snd_soc_codec_driver msm8916_wcd_digital = {
+static const struct snd_soc_codec_driver msm8916_wcd_digital = {
        .probe = msm8916_wcd_digital_codec_probe,
        .set_sysclk = msm8916_wcd_digital_codec_set_sysclk,
        .component_driver = {
index c8bcb1db966de689d2e95413e6c618e7e6b8ad0e..f9c9933acffb60ee50c9c7ec062e3cc278bedf60 100644 (file)
@@ -735,7 +735,7 @@ static int __maybe_unused nau8540_resume(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver nau8540_codec_driver = {
+static const struct snd_soc_codec_driver nau8540_codec_driver = {
        .set_sysclk = nau8540_set_sysclk,
        .set_pll = nau8540_set_pll,
        .suspend = nau8540_suspend,
index e45518629968b53ab01a044459a237f0ef1eb29f..c8e2451ae0a3700a52d111afaebb7482e53957d9 100644 (file)
@@ -808,7 +808,7 @@ static const struct regmap_config nau8810_regmap_config = {
        .num_reg_defaults = ARRAY_SIZE(nau8810_reg_defaults),
 };
 
-static struct snd_soc_codec_driver nau8810_codec_driver = {
+static const struct snd_soc_codec_driver nau8810_codec_driver = {
        .set_bias_level = nau8810_set_bias_level,
        .suspend_bias_off = true,
 
index 3a309b18035e7ab29f5762e8d8331be388ae187e..0240759f951c7ea22b06004aa0e26320bba224fa 100644 (file)
@@ -1469,7 +1469,7 @@ static int __maybe_unused nau8824_resume(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver nau8824_codec_driver = {
+static const struct snd_soc_codec_driver nau8824_codec_driver = {
        .probe = nau8824_codec_probe,
        .set_sysclk = nau8824_set_sysclk,
        .set_pll = nau8824_set_pll,
index 46a30eaa7ace095a39e011790e992bcb1a3f87c9..000aa79314fac9e7aeb9645f9a42fc2a90f43ce3 100644 (file)
@@ -2388,7 +2388,7 @@ static int __maybe_unused nau8825_resume(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver nau8825_codec_driver = {
+static const struct snd_soc_codec_driver nau8825_codec_driver = {
        .probe = nau8825_codec_probe,
        .remove = nau8825_codec_remove,
        .set_sysclk = nau8825_set_sysclk,
index 0b14efab6280dd88b7a72c7df84fb3625a15f650..c7e28dd2e8153bc359494bdd9cb87728dcb1d0a0 100644 (file)
@@ -288,7 +288,7 @@ static const struct regmap_config pcm1681_regmap = {
        .readable_reg           = pcm1681_accessible_reg,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_pcm1681 = {
+static const struct snd_soc_codec_driver soc_codec_dev_pcm1681 = {
        .component_driver = {
                .controls               = pcm1681_controls,
                .num_controls           = ARRAY_SIZE(pcm1681_controls),
index b813a154ddd97e1c31f79e815a938db0538531e3..82a3d9db32cb87b84b78cb07d40b3a34a636a59e 100644 (file)
@@ -205,7 +205,7 @@ const struct regmap_config pcm179x_regmap_config = {
 };
 EXPORT_SYMBOL_GPL(pcm179x_regmap_config);
 
-static struct snd_soc_codec_driver soc_codec_dev_pcm179x = {
+static const struct snd_soc_codec_driver soc_codec_dev_pcm179x = {
        .component_driver = {
                .controls               = pcm179x_controls,
                .num_controls           = ARRAY_SIZE(pcm179x_controls),
index 708af05486f634012da081f78421b676b21d1f7c..e59d8ffb93bd65a2a6319aa3c24e7dc4d603a708 100644 (file)
@@ -98,7 +98,7 @@ static struct snd_soc_dai_driver pcm3008_dai = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_pcm3008 = {
+static const struct snd_soc_codec_driver soc_codec_dev_pcm3008 = {
        .component_driver = {
                .dapm_widgets           = pcm3008_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(pcm3008_dapm_widgets),
index 72b19e62f6267698aea45d2410d616d91c1825cb..f1005a31c709ff61e2292ec12928d08f73e6f136 100644 (file)
@@ -1344,7 +1344,7 @@ static struct snd_soc_dai_driver pcm512x_dai = {
        .ops = &pcm512x_dai_ops,
 };
 
-static struct snd_soc_codec_driver pcm512x_codec_driver = {
+static const struct snd_soc_codec_driver pcm512x_codec_driver = {
        .set_bias_level = pcm512x_set_bias_level,
        .idle_bias_off = true,
 
index fb683ffc4e0342afa6177f57be9f9f6838018ccf..58cfe244f81e27f583cd54189db2d54a48d58519 100644 (file)
@@ -1055,7 +1055,7 @@ static struct snd_soc_dai_driver rt274_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt274 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt274 = {
        .probe = rt274_probe,
        .remove = rt274_remove,
        .suspend = rt274_suspend,
index 7899a2cdeb42f46c5d76cd051319a4b547b1ed04..af6325c78292d2e49eae9021887d437b9aac9e22 100644 (file)
@@ -1046,7 +1046,7 @@ static struct snd_soc_dai_driver rt286_dai[] = {
 
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt286 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt286 = {
        .probe = rt286_probe,
        .remove = rt286_remove,
        .suspend = rt286_suspend,
index d9e96e65e1c43f95cebd224960da0bd53de5c27d..ce963768449f188a804ad86136650b5afd540024 100644 (file)
@@ -1113,7 +1113,7 @@ static struct snd_soc_dai_driver rt298_dai[] = {
 
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt298 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt298 = {
        .probe = rt298_probe,
        .remove = rt298_remove,
        .suspend = rt298_suspend,
index 1b6796c4c471cc536e5d2dc6e3a10fb23d6bff66..7a1b36f6596a5cd1e07c867b3f9d565ee13f47ef 100644 (file)
@@ -1042,7 +1042,7 @@ struct snd_soc_dai_driver rt5514_dai[] = {
        }
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5514 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5514 = {
        .probe = rt5514_probe,
        .idle_bias_off = true,
        .set_bias_level = rt5514_set_bias_level,
index 7d6e0823f98f12023d2e2f95a7734ec51a6bef68..3c5f555ae6d085122d63206b5776a554381e1387 100644 (file)
@@ -1294,7 +1294,7 @@ static struct snd_soc_dai_driver rt5616_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5616 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5616 = {
        .probe = rt5616_probe,
        .suspend = rt5616_suspend,
        .resume = rt5616_resume,
index 0e418089c053ca716619da9ad79aca4090f8415b..55b04c55fb4b37b91f5e890e1daad3b8a9b4eee3 100644 (file)
@@ -1653,7 +1653,7 @@ static struct snd_soc_dai_driver rt5631_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5631 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5631 = {
        .probe = rt5631_probe,
        .set_bias_level = rt5631_set_bias_level,
        .suspend_bias_off = true,
index 1584ccc3a87bb9feffcdc09e8d800dfed045e43b..438fe52a12dfb50472437ca1204c7a2b1748ba34 100644 (file)
@@ -2259,7 +2259,7 @@ static struct snd_soc_dai_driver rt5640_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5640 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5640 = {
        .probe = rt5640_probe,
        .remove = rt5640_remove,
        .suspend = rt5640_suspend,
index 9ec58166f7c427f50d9b72ba1f6bc9cbf0362a50..ce31d0dcf894943bc401967c6509c2af786915c1 100644 (file)
@@ -3473,7 +3473,7 @@ static struct snd_soc_dai_driver rt5645_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5645 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5645 = {
        .probe = rt5645_probe,
        .remove = rt5645_remove,
        .suspend = rt5645_suspend,
index db05b60d50029c3d53b1bdbc5ad5d0118687887a..da60b28ba3dff4d7ec6adf61e01f76a03b46b074 100644 (file)
@@ -1664,7 +1664,7 @@ static struct snd_soc_dai_driver rt5651_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5651 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5651 = {
        .probe = rt5651_probe,
        .suspend = rt5651_suspend,
        .resume = rt5651_resume,
index 1b7060850340bd04041079ad09f9509b6f07b9ad..e8018fce7e4bae0c080741f5ad9c333d7490bcfe 100644 (file)
@@ -3730,7 +3730,7 @@ static struct snd_soc_dai_driver rt5659_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5659 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5659 = {
        .probe = rt5659_probe,
        .remove = rt5659_remove,
        .suspend = rt5659_suspend,
index c93490d77f2aea38af1b7f5f3c3dbe22f27f4a4f..d22ef00e0d964e09c9930f58d62c5f5c247e1a25 100644 (file)
@@ -1197,7 +1197,7 @@ static struct snd_soc_dai_driver rt5660_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5660 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5660 = {
        .probe = rt5660_probe,
        .remove = rt5660_remove,
        .suspend = rt5660_suspend,
index a33202affeb123aca338303d9d9c61bd7d5f5f39..ebc5e3b2b62b0b62b63a0805229c11bdb4fa229b 100644 (file)
@@ -2891,7 +2891,7 @@ static struct snd_soc_dai_driver rt5663_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5663 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5663 = {
        .probe = rt5663_probe,
        .remove = rt5663_remove,
        .suspend = rt5663_suspend,
index 370ed54d1e1590f1036a4ff4425c0462245d3360..2c405456d89f745ad2ee905f70ba57f174f45396 100644 (file)
@@ -4562,7 +4562,7 @@ static struct snd_soc_dai_driver rt5665_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5665 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5665 = {
        .probe = rt5665_probe,
        .remove = rt5665_remove,
        .suspend = rt5665_suspend,
index 0ec7985ed306612db13bd6314ccc94733e835cce..52a6ce8f0b39b1ba88c979ed4724ea20d56e267d 100644 (file)
@@ -2765,7 +2765,7 @@ static struct snd_soc_dai_driver rt5670_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5670 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5670 = {
        .probe = rt5670_probe,
        .remove = rt5670_remove,
        .suspend = rt5670_suspend,
index 36e530a36c8241d5005c8e8f5f933f2a405c3434..ce9b65d466e8f563e39a6989a4dde8194d0af68f 100644 (file)
@@ -4968,7 +4968,7 @@ static struct snd_soc_dai_driver rt5677_dai[] = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_rt5677 = {
+static const struct snd_soc_codec_driver soc_codec_dev_rt5677 = {
        .probe = rt5677_probe,
        .remove = rt5677_remove,
        .suspend = rt5677_suspend,
index 8f6814c1eb6b34aa7b83c04c87594cca18b90152..68e7020b287512a5b2b63fb0cc9bb16e469a9b6f 100644 (file)
@@ -1248,7 +1248,7 @@ static int sgtl5000_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver sgtl5000_driver = {
+static const struct snd_soc_codec_driver sgtl5000_driver = {
        .probe = sgtl5000_probe,
        .remove = sgtl5000_remove,
        .set_bias_level = sgtl5000_set_bias_level,
index 5344f4aa8fde74bdb78f302aa711100e391cd3d5..354dc0d64f11fbd29f59d324c8fd4fb9449acaee 100644 (file)
@@ -236,7 +236,7 @@ static struct regmap *si476x_get_regmap(struct device *dev)
        return dev_get_regmap(dev->parent, NULL);
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_si476x = {
+static const struct snd_soc_codec_driver soc_codec_dev_si476x = {
        .get_regmap = si476x_get_regmap,
        .component_driver = {
                .dapm_widgets           = si476x_dapm_widgets,
index 6bfd25c289d1924b4cc3d33892dba97e3366a351..50bc22266ecbc833cc79530adc6e910882c36f7d 100644 (file)
@@ -429,7 +429,7 @@ static int sirf_audio_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_device_sirf_audio_codec = {
+static const struct snd_soc_codec_driver soc_codec_device_sirf_audio_codec = {
        .probe = sirf_audio_codec_probe,
        .remove = sirf_audio_codec_remove,
        .dapm_widgets = sirf_audio_codec_dapm_widgets,
index eae54c37cff948fcb38f0665d0a3dfd16e1acba1..887923e688499090cf16ef4b4be15da6320a2904 100644 (file)
@@ -883,7 +883,7 @@ static int sn95031_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver sn95031_codec = {
+static const struct snd_soc_codec_driver sn95031_codec = {
        .probe          = sn95031_codec_probe,
        .set_bias_level = sn95031_set_vaud_bias,
        .idle_bias_off  = true,
index 234f87b54838b964d6c42ab5db5c0214824b5707..7acd05140a810c53065186ce6aa6dfa22235c6f7 100644 (file)
@@ -37,7 +37,7 @@ static const struct snd_soc_dapm_route dir_routes[] = {
                        SNDRV_PCM_FMTBIT_S24_LE | \
                        SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
 
-static struct snd_soc_codec_driver soc_codec_spdif_dir = {
+static const struct snd_soc_codec_driver soc_codec_spdif_dir = {
        .component_driver = {
                .dapm_widgets           = dir_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(dir_widgets),
index ee367536a4980a930984f386e515a84f3517de9f..063a64ff82d3ed9c764f917b22f22ff291d3c3d1 100644 (file)
@@ -37,7 +37,7 @@ static const struct snd_soc_dapm_route dit_routes[] = {
        { "spdif-out", NULL, "Playback" },
 };
 
-static struct snd_soc_codec_driver soc_codec_spdif_dit = {
+static const struct snd_soc_codec_driver soc_codec_spdif_dit = {
        .component_driver = {
                .dapm_widgets           = dit_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(dit_widgets),
index 38a85f3adc802ffea8c577065e69e9f9617ec081..15486fd16269d1719d8d080d1e939c0208b309ae 100644 (file)
@@ -710,7 +710,7 @@ static int ssm2518_set_sysclk(struct snd_soc_codec *codec, int clk_id,
                        SSM2518_POWER1_NO_BCLK, val);
 }
 
-static struct snd_soc_codec_driver ssm2518_codec_driver = {
+static const struct snd_soc_codec_driver ssm2518_codec_driver = {
        .set_bias_level = ssm2518_set_bias_level,
        .set_sysclk = ssm2518_set_sysclk,
        .idle_bias_off = true,
index 993bde29ca1bcc6e611bf8d7b7b1f83caa0ce396..9b341c23f62bdf26f2f007efb76c8709104dc48a 100644 (file)
@@ -591,7 +591,7 @@ static int ssm260x_codec_probe(struct snd_soc_codec *codec)
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_ssm2602 = {
+static const struct snd_soc_codec_driver soc_codec_dev_ssm2602 = {
        .probe =        ssm260x_codec_probe,
        .resume =       ssm2602_resume,
        .set_bias_level = ssm2602_set_bias_level,
index a622623e8558a44090a0ec4869f2aff3f70aa524..4afeddef77285386959bf106b66c5ac6b91e0c41 100644 (file)
@@ -417,7 +417,7 @@ static struct snd_soc_dai_driver ssm4567_dai = {
        .ops = &ssm4567_dai_ops,
 };
 
-static struct snd_soc_codec_driver ssm4567_codec_driver = {
+static const struct snd_soc_codec_driver ssm4567_codec_driver = {
        .set_bias_level = ssm4567_set_bias_level,
        .idle_bias_off = true,
 
index 9de7fe8af25508203ed9b9fa1f31491c2cdcee58..c66363a2cac7150e7240b1fd1c52bf547cf219e6 100644 (file)
@@ -307,7 +307,7 @@ static int stac9766_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_stac9766 = {
+static const struct snd_soc_codec_driver soc_codec_dev_stac9766 = {
        .component_driver = {
                .controls               = stac9766_snd_ac97_controls,
                .num_controls           = ARRAY_SIZE(stac9766_snd_ac97_controls),
index 8840f72f3c4ad7f2a2b5f8bcb0cb54745d8dfbf1..49cf9bc32eb6fd937d125a51364bd95231d64411 100644 (file)
@@ -660,7 +660,7 @@ static int tas2552_resume(struct snd_soc_codec *codec)
 #define tas2552_resume NULL
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_tas2552 = {
+static const struct snd_soc_codec_driver soc_codec_dev_tas2552 = {
        .probe = tas2552_codec_probe,
        .remove = tas2552_codec_remove,
        .suspend =      tas2552_suspend,
index b7de857abb16bd5fa4cc28abdf76332040a23234..199272d5cb6a84cff97e74acd750b24ffe7b230d 100644 (file)
@@ -885,7 +885,7 @@ static int tas5086_remove(struct snd_soc_codec *codec)
        return 0;
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_tas5086 = {
+static const struct snd_soc_codec_driver soc_codec_dev_tas5086 = {
        .probe                  = tas5086_probe,
        .remove                 = tas5086_remove,
        .suspend                = tas5086_soc_suspend,
index c65b917598d2e20e7a93f3759c86e1f59bdf15f4..d14b78b1917b31ee014ace4d535dcb89528f99c8 100644 (file)
@@ -483,7 +483,7 @@ static const struct snd_soc_dapm_route tas5720_audio_map[] = {
        { "OUT", NULL, "DAC" },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_tas5720 = {
+static const struct snd_soc_codec_driver soc_codec_dev_tas5720 = {
        .probe = tas5720_codec_probe,
        .remove = tas5720_codec_remove,
        .suspend = tas5720_suspend,
index 628a8eeaab689eb85b6d3dba54ec5a98aefe6da0..3d42138a7974c0c3df1e2b10207ff54b37c5c229 100644 (file)
@@ -576,7 +576,7 @@ static int tlv320aic23_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_tlv320aic23 = {
+static const struct snd_soc_codec_driver soc_codec_dev_tlv320aic23 = {
        .probe = tlv320aic23_codec_probe,
        .resume = tlv320aic23_resume,
        .set_bias_level = tlv320aic23_set_bias_level,
index 14aa96d417198500bf94a037e58592fad654119f..89421caaeb707709a3ee6a9c4876f71677cdd1d7 100644 (file)
@@ -319,7 +319,7 @@ static int aic26_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver aic26_soc_codec_dev = {
+static const struct snd_soc_codec_driver aic26_soc_codec_dev = {
        .probe = aic26_probe,
        .component_driver = {
                .controls               = aic26_snd_controls,
index d7d03c92cb8a6103b4c9db2148fe706e3bf68cfe..54a87a905eb63a4cc94e0d2f214992a1011d2cc2 100644 (file)
@@ -1185,7 +1185,7 @@ static int aic31xx_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_driver_aic31xx = {
+static const struct snd_soc_codec_driver soc_codec_driver_aic31xx = {
        .probe                  = aic31xx_codec_probe,
        .remove                 = aic31xx_codec_remove,
        .set_bias_level         = aic31xx_set_bias_level,
index 28fdfc5ec54430d82083bc2e62d727ae5b046699..ccfc955321aec016aad21377ce8581e9e28c2c8c 100644 (file)
@@ -792,7 +792,7 @@ static int aic32x4_codec_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_aic32x4 = {
+static const struct snd_soc_codec_driver soc_codec_dev_aic32x4 = {
        .probe = aic32x4_codec_probe,
        .set_bias_level = aic32x4_set_bias_level,
        .suspend_bias_off = true,
index 29bf8c81ae028c0dad3dbff8c4cde406bf693c07..405f4602888aec6e952fcd9bf3dc865ce4d8e280 100644 (file)
@@ -1684,7 +1684,7 @@ static int aic3x_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_aic3x = {
+static const struct snd_soc_codec_driver soc_codec_dev_aic3x = {
        .set_bias_level = aic3x_set_bias_level,
        .idle_bias_off = true,
        .probe = aic3x_probe,
index 7bcf01efdf9ad0df4253c40958df35fc1f01e5f7..5b94a151539ce1f828e4af7feb643be9d62eb7fd 100644 (file)
@@ -1433,7 +1433,7 @@ static int dac33_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_tlv320dac33 = {
+static const struct snd_soc_codec_driver soc_codec_dev_tlv320dac33 = {
        .read = dac33_read_reg_cache,
        .write = dac33_write_locked,
        .set_bias_level = dac33_set_bias_level,
index a2104d68169d9e6bc9aa30fe8269070a6dc88e40..d439c4c6fe50a9def802a3ad86419c0900527c17 100644 (file)
@@ -2191,7 +2191,7 @@ static int twl4030_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_twl4030 = {
+static const struct snd_soc_codec_driver soc_codec_dev_twl4030 = {
        .probe = twl4030_soc_probe,
        .remove = twl4030_soc_remove,
        .read = twl4030_read,
index 2b6ad09e08868323e3e9bef25bd26b33bb5e2949..0dc21f7e0af923fc7073f72890af4b6837713b1b 100644 (file)
@@ -1155,7 +1155,7 @@ static int twl6040_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
+static const struct snd_soc_codec_driver soc_codec_dev_twl6040 = {
        .probe = twl6040_probe,
        .remove = twl6040_remove,
        .read = twl6040_read,
index 5fdee874406d72b1d444a9e3823dbe34c41e66cf..77c9cc4467b82d65f3f595a1cca5d6cddffe8fe8 100644 (file)
@@ -518,7 +518,7 @@ static int uda134x_soc_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_uda134x = {
+static const struct snd_soc_codec_driver soc_codec_dev_uda134x = {
        .probe =        uda134x_soc_probe,
        .set_bias_level = uda134x_set_bias_level,
        .suspend_bias_off = true,
index 61cdc79840e70743229f5919bfc5aa3293f38270..926c81ae81853477241c1deecb5400a226f1665a 100644 (file)
@@ -720,7 +720,7 @@ static int uda1380_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_uda1380 = {
+static const struct snd_soc_codec_driver soc_codec_dev_uda1380 = {
        .probe =        uda1380_probe,
        .read =         uda1380_read_reg_cache,
        .write =        uda1380_write,
index fcffb6e707d9b8fcdacddb77d445eb5d738837ef..942f1644973e8dd52b4b68d71cbc73123b249cd5 100644 (file)
@@ -480,7 +480,7 @@ static int wl1273_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wl1273 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wl1273 = {
        .probe = wl1273_probe,
        .remove = wl1273_remove,
 
index 032fb7cf6cbdfce68f00577c41243561b9534742..36d0a7087a540ca967bae4303f8797952b47cadd 100644 (file)
@@ -261,7 +261,7 @@ static const struct snd_soc_dapm_route aud96p22_dapm_routes[] = {
        { "LINEOUTMN", NULL, "LD2" },
 };
 
-static struct snd_soc_codec_driver aud96p22_driver = {
+static const struct snd_soc_codec_driver aud96p22_driver = {
        .component_driver = {
                .controls = aud96p22_snd_controls,
                .num_controls = ARRAY_SIZE(aud96p22_snd_controls),