aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-08-08 05:10:41 -0400
committerMark Brown <broonie@kernel.org>2016-08-08 06:57:57 -0400
commit72bb3cdf93b1718c9a540fb157890d8639633eca (patch)
tree96388d0436db87d9dc6aae655064356765888be4
parent69295df090a03e406c54ca0dbd67a76355773138 (diff)
ASoC: codec duplicated callback function goes to component on atmel-pdmic
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>
-rw-r--r--sound/soc/atmel/atmel-pdmic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c
index 5f56da60c92f..2a3a41fad38d 100644
--- a/sound/soc/atmel/atmel-pdmic.c
+++ b/sound/soc/atmel/atmel-pdmic.c
@@ -357,8 +357,10 @@ static int atmel_pdmic_codec_probe(struct snd_soc_codec *codec)
357 357
358static struct snd_soc_codec_driver soc_codec_dev_pdmic = { 358static struct snd_soc_codec_driver soc_codec_dev_pdmic = {
359 .probe = atmel_pdmic_codec_probe, 359 .probe = atmel_pdmic_codec_probe,
360 .controls = atmel_pdmic_snd_controls, 360 .component_driver = {
361 .num_controls = ARRAY_SIZE(atmel_pdmic_snd_controls), 361 .controls = atmel_pdmic_snd_controls,
362 .num_controls = ARRAY_SIZE(atmel_pdmic_snd_controls),
363 },
362}; 364};
363 365
364/* codec dai component */ 366/* codec dai component */