ASoC: constify snd_soc_codec_driver structures
[deliverable/linux.git] / sound / soc / codecs / wm9713.c
index 9849643ef8099c7f3340a719cf160c8ce633f9c5..e4301ddb1b84e434ce3bbfa5997f20658af30dbd 100644 (file)
@@ -1235,19 +1235,21 @@ 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,
        .resume =       wm9713_soc_resume,
        .set_bias_level = wm9713_set_bias_level,
 
-       .controls = wm9713_snd_ac97_controls,
-       .num_controls = ARRAY_SIZE(wm9713_snd_ac97_controls),
-       .dapm_widgets = wm9713_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(wm9713_dapm_widgets),
-       .dapm_routes = wm9713_audio_map,
-       .num_dapm_routes = ARRAY_SIZE(wm9713_audio_map),
+       .component_driver = {
+               .controls               = wm9713_snd_ac97_controls,
+               .num_controls           = ARRAY_SIZE(wm9713_snd_ac97_controls),
+               .dapm_widgets           = wm9713_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(wm9713_dapm_widgets),
+               .dapm_routes            = wm9713_audio_map,
+               .num_dapm_routes        = ARRAY_SIZE(wm9713_audio_map),
+       },
 };
 
 static int wm9713_probe(struct platform_device *pdev)
This page took 0.026798 seconds and 5 git commands to generate.