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

index acff8d62059cf49de24585aeac9c2143412c0175..6e793ebb588333c7ee39ee851ccb6c66ad746ad3 100644 (file)
@@ -834,12 +834,14 @@ static struct snd_soc_codec_driver adav80x_codec_driver = {
        .set_pll = adav80x_set_pll,
        .set_sysclk = adav80x_set_sysclk,
 
-       .controls = adav80x_controls,
-       .num_controls = ARRAY_SIZE(adav80x_controls),
-       .dapm_widgets = adav80x_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(adav80x_dapm_widgets),
-       .dapm_routes = adav80x_dapm_routes,
-       .num_dapm_routes = ARRAY_SIZE(adav80x_dapm_routes),
+       .component_driver = {
+               .controls               = adav80x_controls,
+               .num_controls           = ARRAY_SIZE(adav80x_controls),
+               .dapm_widgets           = adav80x_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(adav80x_dapm_widgets),
+               .dapm_routes            = adav80x_dapm_routes,
+               .num_dapm_routes        = ARRAY_SIZE(adav80x_dapm_routes),
+       },
 };
 
 int adav80x_bus_probe(struct device *dev, struct regmap *regmap)