ASoC: codec duplicated callback function goes to component on wm2000
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 8 Aug 2016 09:28:43 +0000 (09:28 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 8 Aug 2016 10:57:57 +0000 (11:57 +0100)
codec driver and component driver has duplicated callback functions,
and codec side functions are just copied to component side when
register timing. This was quick-hack, but no longer needed.
This patch moves these functions from codec driver to component driver.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm2000.c

index a67ea10f41a1adce51e3625986e1170904429837..1ebaf99a1907d691c478bcdf4e389ab7fb1afb5f 100644 (file)
@@ -805,12 +805,14 @@ static struct snd_soc_codec_driver soc_codec_dev_wm2000 = {
        .suspend = wm2000_suspend,
        .resume = wm2000_resume,
 
-       .dapm_widgets = wm2000_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(wm2000_dapm_widgets),
-       .dapm_routes = wm2000_audio_map,
-       .num_dapm_routes = ARRAY_SIZE(wm2000_audio_map),
-       .controls = wm2000_controls,
-       .num_controls = ARRAY_SIZE(wm2000_controls),
+       .component_driver = {
+               .controls               = wm2000_controls,
+               .num_controls           = ARRAY_SIZE(wm2000_controls),
+               .dapm_widgets           = wm2000_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(wm2000_dapm_widgets),
+               .dapm_routes            = wm2000_audio_map,
+               .num_dapm_routes        = ARRAY_SIZE(wm2000_audio_map),
+       },
 };
 
 static int wm2000_i2c_probe(struct i2c_client *i2c,