From c2f81c1f234f46bc4872ac76d8d9d7a89aa613dd Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Wed, 5 Aug 2020 03:26:15 +0100 Subject: [PATCH] v5.2: comments The init code was extracted into asoc_simple_card_init_priv(), with additional comments. commit 65a5056b21202eff7f54243e587183f4bb6ed352 Author: Kuninori Morimoto Date: Wed Mar 20 13:56:26 2019 +0900 ASoC: simple-card-utils: share asoc_simple_card_init_priv() The difference between simple-card / audio-graph are just using OF graph style, or not. In other words, other things should be same. This means, simple-card/audio-graph common functions should be implemented at simple-card-utils, and its own functions should be implemented at each files. Current simple-card / audio-graph are initializing each priv, but it is same operation. This patch adds new asoc_simple_card_init_priv() and initialize priv by same operation. --- seeed-voicecard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/seeed-voicecard.c b/seeed-voicecard.c index 07e30c6..ee7e72a 100644 --- a/seeed-voicecard.c +++ b/seeed-voicecard.c @@ -587,6 +587,10 @@ static int seeed_voice_card_probe(struct platform_device *pdev) * It is codec only. but cpu/platform will be supported in the future. * see * soc-core.c :: snd_soc_init_multicodec() + * + * "platform" might be removed + * see + * simple-card-utils.c :: asoc_simple_canonicalize_platform() */ for (i = 0; i < num; i++) { dai_link[i].cpus = &dai_props[i].cpus;