ASoC: codec duplicated callback function goes to component on ssm2518
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 8 Aug 2016 09:24:44 +0000 (09:24 +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/ssm2518.c

index e2e0bfa7ec20f9df40a3e4385e3edf44e3f0d15d..38a85f3adc802ffea8c577065e69e9f9617ec081 100644 (file)
@@ -715,12 +715,14 @@ static struct snd_soc_codec_driver ssm2518_codec_driver = {
        .set_sysclk = ssm2518_set_sysclk,
        .idle_bias_off = true,
 
-       .controls = ssm2518_snd_controls,
-       .num_controls = ARRAY_SIZE(ssm2518_snd_controls),
-       .dapm_widgets = ssm2518_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(ssm2518_dapm_widgets),
-       .dapm_routes = ssm2518_routes,
-       .num_dapm_routes = ARRAY_SIZE(ssm2518_routes),
+       .component_driver = {
+               .controls               = ssm2518_snd_controls,
+               .num_controls           = ARRAY_SIZE(ssm2518_snd_controls),
+               .dapm_widgets           = ssm2518_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(ssm2518_dapm_widgets),
+               .dapm_routes            = ssm2518_routes,
+               .num_dapm_routes        = ARRAY_SIZE(ssm2518_routes),
+       },
 };
 
 static const struct regmap_config ssm2518_regmap_config = {