ASoC: constify snd_soc_codec_driver structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 31 Aug 2016 21:52:27 +0000 (23:52 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 19:55:31 +0000 (20:55 +0100)
Check for snd_soc_codec_driver structures that are only passed to
snd_soc_register_codec or memcpy (2nd arg), for which the corresponding
parameters are declared const.  Declare as const snd_soc_codec_driver
structures that have these properties.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct snd_soc_codec_driver i@p = { ... };

@ok@
identifier r.i;
expression e1,e2,e3;
position p;
@@
(
snd_soc_register_codec(e1,&i@p,e2,e3)
|
memcpy(e1,&i@p,e2)
)

@bad@
position p != {r.p,ok.p};
identifier r.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_soc_codec_driver i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
48 files changed:
sound/soc/codecs/wm0010.c
sound/soc/codecs/wm1250-ev1.c
sound/soc/codecs/wm2000.c
sound/soc/codecs/wm2200.c
sound/soc/codecs/wm5100.c
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm8350.c
sound/soc/codecs/wm8400.c
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8523.c
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8711.c
sound/soc/codecs/wm8727.c
sound/soc/codecs/wm8728.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8737.c
sound/soc/codecs/wm8741.c
sound/soc/codecs/wm8750.c
sound/soc/codecs/wm8753.c
sound/soc/codecs/wm8770.c
sound/soc/codecs/wm8776.c
sound/soc/codecs/wm8782.c
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm8903.c
sound/soc/codecs/wm8904.c
sound/soc/codecs/wm8940.c
sound/soc/codecs/wm8955.c
sound/soc/codecs/wm8960.c
sound/soc/codecs/wm8961.c
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8971.c
sound/soc/codecs/wm8974.c
sound/soc/codecs/wm8978.c
sound/soc/codecs/wm8983.c
sound/soc/codecs/wm8985.c
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm8991.c
sound/soc/codecs/wm8993.c
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8996.c
sound/soc/codecs/wm8997.c
sound/soc/codecs/wm8998.c
sound/soc/codecs/wm9081.c
sound/soc/codecs/wm9090.c
sound/soc/codecs/wm9705.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c

index 4ef6919ab1a1de297625d465943b34d609b85151..0eb5dcf4c29ddfdebf4cb4323d5a640652051b14 100644 (file)
@@ -789,7 +789,7 @@ static int wm0010_set_sysclk(struct snd_soc_codec *codec, int source,
 
 static int wm0010_probe(struct snd_soc_codec *codec);
 
-static struct snd_soc_codec_driver soc_codec_dev_wm0010 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm0010 = {
        .probe = wm0010_probe,
        .set_bias_level = wm0010_set_bias_level,
        .set_sysclk = wm0010_set_sysclk,
index caf501227265792e77644b1f08b31cebdfe42ab1..cf5f0580df6a852225ef70f39a6af22fe1255cc9 100644 (file)
@@ -141,7 +141,7 @@ static struct snd_soc_dai_driver wm1250_ev1_dai = {
        .ops = &wm1250_ev1_ops,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm1250_ev1 = {
        .component_driver = {
                .dapm_widgets           = wm1250_ev1_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(wm1250_ev1_dapm_widgets),
index 1ebaf99a1907d691c478bcdf4e389ab7fb1afb5f..e553f7fd7e63b4d0dab597940435eda3279c287e 100644 (file)
@@ -799,7 +799,7 @@ static int wm2000_remove(struct snd_soc_codec *codec)
        return wm2000_anc_transition(wm2000, ANC_OFF);
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm2000 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm2000 = {
        .probe = wm2000_probe,
        .remove = wm2000_remove,
        .suspend = wm2000_suspend,
index d913d0e3e9beec3687651692405674197a8a6eb3..606bf88abfc444a9036695eebb0e459419041997 100644 (file)
@@ -2103,7 +2103,7 @@ static struct snd_soc_dai_driver wm2200_dai = {
        .ops = &wm2200_dai_ops,
 };
 
-static struct snd_soc_codec_driver soc_codec_wm2200 = {
+static const struct snd_soc_codec_driver soc_codec_wm2200 = {
        .probe = wm2200_probe,
 
        .idle_bias_off = true,
index 8cbdf1701222316d3402a4b1176a047d266f83a1..278467d3b1acb65543816b222dba567cc63cab28 100644 (file)
@@ -2381,7 +2381,7 @@ static int wm5100_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm5100 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm5100 = {
        .probe =        wm5100_probe,
        .remove =       wm5100_remove,
 
index 1295978e836037da368b4a4837f91786c0f5b234..05bb3cb02e7045285230141cc5c004e85ffa67b0 100644 (file)
@@ -1990,7 +1990,7 @@ static struct regmap *wm5102_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm5102 = {
        .probe = wm5102_codec_probe,
        .remove = wm5102_codec_remove,
        .get_regmap = wm5102_get_regmap,
index 3e7f873f270910a5b3d0ebe1c7d12bc959a509f0..e22d3dcb6fd79afbf1ef0214bed0312fa130133f 100644 (file)
@@ -2347,7 +2347,7 @@ static struct regmap *wm5110_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm5110 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm5110 = {
        .probe = wm5110_codec_probe,
        .remove = wm5110_codec_remove,
        .get_regmap = wm5110_get_regmap,
index 18bc4ca07fcbe25864b40dbb157d5847e28460a9..2efc5b41ad0fe32f138384e91462af562e627a7d 100644 (file)
@@ -1587,7 +1587,7 @@ static struct regmap *wm8350_get_regmap(struct device *dev)
        return wm8350->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8350 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8350 = {
        .probe =        wm8350_codec_probe,
        .remove =       wm8350_codec_remove,
        .get_regmap =   wm8350_get_regmap,
index 4551e54a8d5b21699e5d52260e846d795412e8f6..6c59fb933bd6a940571fdccd8f3b4af765f7d256 100644 (file)
@@ -1332,7 +1332,7 @@ static struct regmap *wm8400_get_regmap(struct device *dev)
        return wm8400->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8400 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8400 = {
        .probe =        wm8400_codec_probe,
        .remove =       wm8400_codec_remove,
        .get_regmap =   wm8400_get_regmap,
index 7f93adf7118df67d0c89e6fe42c7f621444244bd..119ceac684ae136e236c9fe83d1aff8bac646e33 100644 (file)
@@ -581,7 +581,7 @@ static int wm8510_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8510 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8510 = {
        .probe =        wm8510_probe,
        .set_bias_level = wm8510_set_bias_level,
        .suspend_bias_off = true,
index 0bb189a3d322c3aac4c4f385b8525c43ad5cfe47..deb2e075428ec9e29acdbcb981dc34630b0df0ff 100644 (file)
@@ -413,7 +413,7 @@ static int wm8523_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8523 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8523 = {
        .probe =        wm8523_probe,
        .set_bias_level = wm8523_set_bias_level,
        .suspend_bias_off = true,
index 2e69270a90156ffbf1e4734dcec84eb715aa494f..faa7287a52535798aa6dfd56e8c9fe2bd0ba111f 100644 (file)
@@ -899,7 +899,7 @@ static int wm8580_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8580 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8580 = {
        .probe =        wm8580_probe,
        .remove =       wm8580_remove,
        .set_bias_level = wm8580_set_bias_level,
index 4e8ebefe25f4d4a7128b8b41ae53cd4b0ce2c85b..2b376c9c99afa94a85ce205a7550ebc2fd0c1994 100644 (file)
@@ -367,7 +367,7 @@ static int wm8711_probe(struct snd_soc_codec *codec)
 
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8711 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8711 = {
        .probe =        wm8711_probe,
        .set_bias_level = wm8711_set_bias_level,
        .suspend_bias_off = true,
index b01e64ec45fdca0259b0d02810853a6700b76d1a..7fde077a014be3f59af9d03ddbeaf22d048d91ab 100644 (file)
@@ -53,7 +53,7 @@ static struct snd_soc_dai_driver wm8727_dai = {
                },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8727 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8727 = {
        .component_driver = {
                .dapm_widgets           = wm8727_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(wm8727_dapm_widgets),
index dcd64b38bd7d9230151e6e20c82f67e628f651b1..797cc6e7c70fee2fea6547e2e76efba9a5a17b78 100644 (file)
@@ -211,7 +211,7 @@ static struct snd_soc_dai_driver wm8728_dai = {
        .ops = &wm8728_dai_ops,
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8728 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8728 = {
        .set_bias_level = wm8728_set_bias_level,
        .suspend_bias_off = true,
 
index 545fc9ae1a9449d929ddd98d65679644b08887c5..4f9a1eb281204ba3d88380f914658e1b94c57ecf 100644 (file)
@@ -628,7 +628,7 @@ err_regulator_enable:
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8731 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8731 = {
        .set_bias_level = wm8731_set_bias_level,
        .suspend_bias_off = true,
 
index 728c42cc70ca3abb150493e0115c0c5177c491ec..f0cb1c4afe3cec6429038af5eaee5e892c478917 100644 (file)
@@ -573,7 +573,7 @@ err_get:
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8737 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8737 = {
        .probe          = wm8737_probe,
        .set_bias_level = wm8737_set_bias_level,
        .suspend_bias_off = true,
index 3e432721903e9e77f4dd132ce7099ca9971bb5c7..565d477cd790ee64b071515d44badf5779d192e0 100644 (file)
@@ -497,7 +497,7 @@ static int wm8741_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8741 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8741 = {
        .probe =        wm8741_probe,
        .remove =       wm8741_remove,
        .resume =       wm8741_resume,
index a96a1456897b3ba14b06047c6198a38d45fe77ee..0da2bbaf06d1f33e89b48497865d477d58696e1c 100644 (file)
@@ -708,7 +708,7 @@ static int wm8750_probe(struct snd_soc_codec *codec)
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8750 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8750 = {
        .probe =        wm8750_probe,
        .set_bias_level = wm8750_set_bias_level,
        .suspend_bias_off = true,
index 1bb272c36ad917bdf55ba879906cc48b5892f39e..9bdf5447f6f60fcdace934194f2c81337e4c5195 100644 (file)
@@ -1478,7 +1478,7 @@ static int wm8753_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8753 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8753 = {
        .probe =        wm8753_probe,
        .resume =       wm8753_resume,
        .set_bias_level = wm8753_set_bias_level,
index 8783a5fc123eb71267cd27f782ca5148682c130d..d6edcbbdec12e3839babe286fa16a0e28fbd551b 100644 (file)
@@ -608,7 +608,7 @@ err_reg_enable:
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8770 = {
        .probe = wm8770_probe,
        .set_bias_level = wm8770_set_bias_level,
        .idle_bias_off = true,
index f17a3a8fffb0b2be97a4a48a7da0325eeb9c3bf9..ae30480b3976875bcf2747189a61ea960416f79a 100644 (file)
@@ -425,7 +425,7 @@ static int wm8776_probe(struct snd_soc_codec *codec)
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8776 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8776 = {
        .probe =        wm8776_probe,
        .set_bias_level = wm8776_set_bias_level,
        .suspend_bias_off = true,
index 1e9c4953dc1088dcf8884c13e1f719d97f3da24b..bcda210185050a0ddc3901ba244f0bbdc70dfee8 100644 (file)
@@ -50,7 +50,7 @@ static struct snd_soc_dai_driver wm8782_dai = {
        },
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8782 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8782 = {
        .component_driver = {
                .dapm_widgets           = wm8782_dapm_widgets,
                .num_dapm_widgets       = ARRAY_SIZE(wm8782_dapm_widgets),
index 724cec4a638d4674141d3f1a58c3e77d6fb6d067..c77b49a293116820bf4e003ed0146d43d8c8eacd 100644 (file)
@@ -1208,7 +1208,7 @@ static int wm8900_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8900 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8900 = {
        .probe =        wm8900_probe,
        .suspend =      wm8900_suspend,
        .resume =       wm8900_resume,
index c19ba7ca3a35f89b5aa35982430104b85043fa11..837c8b9f19e93862dc1cc81ca28bd4c68c595247 100644 (file)
@@ -1874,7 +1874,7 @@ static void wm8903_free_gpio(struct wm8903_priv *wm8903)
 }
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8903 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8903 = {
        .resume =       wm8903_resume,
        .set_bias_level = wm8903_set_bias_level,
        .seq_notifier = wm8903_seq_notifier,
index edd7a77091942cd7b873e9c193baed54dd6186c6..4fd350e8420dd80471ee862a0793548ab0d9edf9 100644 (file)
@@ -2086,7 +2086,7 @@ static int wm8904_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8904 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8904 = {
        .probe =        wm8904_probe,
        .remove =       wm8904_remove,
        .set_bias_level = wm8904_set_bias_level,
index 3c9febcc863639f6a5cb1f899296dba3bdf05055..b5935625feeb83a774752164a4e47c4cf0b1eee6 100644 (file)
@@ -723,7 +723,7 @@ static int wm8940_probe(struct snd_soc_codec *codec)
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8940 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8940 = {
        .probe =        wm8940_probe,
        .set_bias_level = wm8940_set_bias_level,
        .suspend_bias_off = true,
index 575075d5587e332d46b137f144877a273f224639..1edc7b1df31de2a845fb1a5e06669a3b09bdd2c4 100644 (file)
@@ -940,7 +940,7 @@ err_enable:
        return ret;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8955 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8955 = {
        .probe =        wm8955_probe,
        .set_bias_level = wm8955_set_bias_level,
        .suspend_bias_off = true,
index d7f444f874604d7d8a6df4a05aa634fe5448fdfd..be3244361210c15c8e91180eaf11b705e753953e 100644 (file)
@@ -1264,7 +1264,7 @@ static int wm8960_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8960 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8960 = {
        .probe =        wm8960_probe,
        .set_bias_level = wm8960_set_bias_level,
        .suspend_bias_off = true,
index 4b51761f6816035c8625187fb7c7a0b011c67d12..e23ceac760153ba592fbc1b0003a3207e5d2a7a7 100644 (file)
@@ -882,7 +882,7 @@ static int wm8961_resume(struct snd_soc_codec *codec)
 #define wm8961_resume NULL
 #endif
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8961 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8961 = {
        .probe =        wm8961_probe,
        .resume =       wm8961_resume,
        .set_bias_level = wm8961_set_bias_level,
index f3109da247692377d1240ebd72b58fe16d8683cf..392b920670116d6bd6e08e7579e6a8ebe1bf90ad 100644 (file)
@@ -3479,7 +3479,7 @@ static int wm8962_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8962 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8962 = {
        .probe =        wm8962_probe,
        .remove =       wm8962_remove,
        .set_bias_level = wm8962_set_bias_level,
index 214fa139ff0e99abbaf8b45f38bb62381c61e97f..887d31cf39457574733f303c78ddd8dd98ef9214 100644 (file)
@@ -649,7 +649,7 @@ static int wm8971_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8971 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8971 = {
        .probe =        wm8971_probe,
        .set_bias_level = wm8971_set_bias_level,
        .suspend_bias_off = true,
index fbda6e3f8a9dfd7d2901d0286364555a64178b9a..d414ddd6e197fd63f023ee2822f9626ddf7f640d 100644 (file)
@@ -676,7 +676,7 @@ static int wm8974_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8974 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8974 = {
        .probe =        wm8974_probe,
        .set_bias_level = wm8974_set_bias_level,
        .suspend_bias_off = true,
index 910b36f11264d8f0105dd81cd2b0a49ee5aa198b..90b2d418ef606247da30944b82190b92bb1e9db1 100644 (file)
@@ -993,7 +993,7 @@ static int wm8978_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8978 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8978 = {
        .probe =        wm8978_probe,
        .suspend =      wm8978_suspend,
        .resume =       wm8978_resume,
index 9609fc0e28211fb56ff2a4dd02df204ab415ef20..bfdbe72ee687daf17bbb3bd9fe5cc6f5ab7026af 100644 (file)
@@ -976,7 +976,7 @@ static struct snd_soc_dai_driver wm8983_dai = {
        .symmetric_rates = 1
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8983 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8983 = {
        .probe = wm8983_probe,
        .set_bias_level = wm8983_set_bias_level,
        .suspend_bias_off = true,
index bcf34730d507ec76ee7fe0fa0bf98f2880583634..05344f974ff31b7f3d9879d4fafa335ac8996cfb 100644 (file)
@@ -1105,7 +1105,7 @@ static struct snd_soc_dai_driver wm8985_dai = {
        .symmetric_rates = 1
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8985 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8985 = {
        .probe = wm8985_probe,
        .set_bias_level = wm8985_set_bias_level,
        .suspend_bias_off = true,
index a412fd0a2e643d4b2becde8ce1cbf659ca31e707..a8945001e6963a6adb81f008ae4aa09e2dc54b12 100644 (file)
@@ -1294,7 +1294,7 @@ static int wm8990_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8990 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8990 = {
        .probe =        wm8990_probe,
        .set_bias_level = wm8990_set_bias_level,
        .suspend_bias_off = true,
index 5822d1008f07bd2809719df161098599fa7fce63..98437904079400bce635dbf96d3efab53ec8ac46 100644 (file)
@@ -1232,7 +1232,7 @@ static struct snd_soc_dai_driver wm8991_dai = {
        .ops = &wm8991_ops
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8991 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8991 = {
        .set_bias_level = wm8991_set_bias_level,
        .suspend_bias_off = true,
 
index 8668c4c391b07be20309503c9f2f5568051b99cc..195f7bf6eb22aa716da8c09a379f26c91e83edf2 100644 (file)
@@ -1613,7 +1613,7 @@ static const struct regmap_config wm8993_regmap = {
        .num_reg_defaults = ARRAY_SIZE(wm8993_reg_defaults),
 };
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8993 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8993 = {
        .probe =        wm8993_probe,
        .suspend =      wm8993_suspend,
        .resume =       wm8993_resume,
index a18aecb4993590e6a7bd936b238fee544462a6bc..3896523b71e9c924d1c62dbb0661f6945e840c4f 100644 (file)
@@ -4439,7 +4439,7 @@ static struct regmap *wm8994_get_regmap(struct device *dev)
        return control->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
        .probe =        wm8994_codec_probe,
        .remove =       wm8994_codec_remove,
        .suspend =      wm8994_codec_suspend,
index abacf6c9949999b434824025aeba964d1581155d..5eba8ffba4272d50ed252aaeac123c4029de087b 100644 (file)
@@ -2684,7 +2684,7 @@ static int wm8996_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8996 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8996 = {
        .probe =        wm8996_probe,
        .remove =       wm8996_remove,
        .set_bias_level = wm8996_set_bias_level,
index cf23a6b7684606296fb60a003e874dcaa47b9afb..2f2821b3382f055a9560413240797e4c56579c61 100644 (file)
@@ -1095,7 +1095,7 @@ static struct regmap *wm8997_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8997 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8997 = {
        .probe = wm8997_codec_probe,
        .remove = wm8997_codec_remove,
        .get_regmap =   wm8997_get_regmap,
index 315b23b836d0f7b24af955b960c49bce14ef7960..f6d18d77cec27071e536369cd7ddc0462512e3bf 100644 (file)
@@ -1351,7 +1351,7 @@ static struct regmap *wm8998_get_regmap(struct device *dev)
        return priv->core.arizona->regmap;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm8998 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm8998 = {
        .probe = wm8998_codec_probe,
        .remove = wm8998_codec_remove,
        .get_regmap = wm8998_get_regmap,
index 30eaf4c92cd88dd100bf39ee3152c3206619dacf..856867ec2813486eafb1399b22c2e8e4af5fc474 100644 (file)
@@ -1274,7 +1274,7 @@ static int wm9081_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm9081 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm9081 = {
        .probe =        wm9081_probe,
 
        .set_sysclk = wm9081_set_sysclk,
index 5d737290f5475f615ac9c1b536d6311602884e9d..5a131385cb2ff258e1d16edc895b37a1ad7fc719 100644 (file)
@@ -550,7 +550,7 @@ static int wm9090_probe(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm9090 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm9090 = {
        .probe =        wm9090_probe,
        .set_bias_level = wm9090_set_bias_level,
        .suspend_bias_off = true,
index c88492d137fb7bbc2e2e3fcbb48ba64be2c88df5..dcdd055db57b6fe38f085932f1f6b7e9ea063417 100644 (file)
@@ -352,7 +352,7 @@ static int wm9705_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm9705 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm9705 = {
        .probe =        wm9705_soc_probe,
        .remove =       wm9705_soc_remove,
        .suspend =      wm9705_soc_suspend,
index e5aafdd85929b2760062deea61dfcabf80497dfb..557709eac698fb60c6a66d5af9a88bf744e8256c 100644 (file)
@@ -669,7 +669,7 @@ static int wm9712_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm9712 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm9712 = {
        .probe =        wm9712_soc_probe,
        .remove =       wm9712_soc_remove,
        .resume =       wm9712_soc_resume,
index 255a7c2d1d6570f4f8cd1026b9cdaad6665f02a9..e4301ddb1b84e434ce3bbfa5997f20658af30dbd 100644 (file)
@@ -1235,7 +1235,7 @@ static int wm9713_soc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_dev_wm9713 = {
+static const struct snd_soc_codec_driver soc_codec_dev_wm9713 = {
        .probe =        wm9713_soc_probe,
        .remove =       wm9713_soc_remove,
        .suspend =      wm9713_soc_suspend,