aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8961.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8961.c')
-rw-r--r--sound/soc/codecs/wm8961.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8961.c b/sound/soc/codecs/wm8961.c
index e30446a04740..e23ceac76015 100644
--- a/sound/soc/codecs/wm8961.c
+++ b/sound/soc/codecs/wm8961.c
@@ -882,18 +882,20 @@ static int wm8961_resume(struct snd_soc_codec *codec)
882#define wm8961_resume NULL 882#define wm8961_resume NULL
883#endif 883#endif
884 884
885static struct snd_soc_codec_driver soc_codec_dev_wm8961 = { 885static const struct snd_soc_codec_driver soc_codec_dev_wm8961 = {
886 .probe = wm8961_probe, 886 .probe = wm8961_probe,
887 .resume = wm8961_resume, 887 .resume = wm8961_resume,
888 .set_bias_level = wm8961_set_bias_level, 888 .set_bias_level = wm8961_set_bias_level,
889 .suspend_bias_off = true, 889 .suspend_bias_off = true,
890 890
891 .controls = wm8961_snd_controls, 891 .component_driver = {
892 .num_controls = ARRAY_SIZE(wm8961_snd_controls), 892 .controls = wm8961_snd_controls,
893 .dapm_widgets = wm8961_dapm_widgets, 893 .num_controls = ARRAY_SIZE(wm8961_snd_controls),
894 .num_dapm_widgets = ARRAY_SIZE(wm8961_dapm_widgets), 894 .dapm_widgets = wm8961_dapm_widgets,
895 .dapm_routes = audio_paths, 895 .num_dapm_widgets = ARRAY_SIZE(wm8961_dapm_widgets),
896 .num_dapm_routes = ARRAY_SIZE(audio_paths), 896 .dapm_routes = audio_paths,
897 .num_dapm_routes = ARRAY_SIZE(audio_paths),
898 },
897}; 899};
898 900
899static const struct regmap_config wm8961_regmap = { 901static const struct regmap_config wm8961_regmap = {