alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>
Subject: [PATCH 15/15][RFC] ASoC: simple-card-util: remove dai_link compatible code for platform
Date: Mon, 20 Aug 2018 05:14:56 +0000	[thread overview]
Message-ID: <87muthtyk0.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <878t51vdd3.wl-kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Now no simple/audio cards are using legacy dai_link style for platform.
Let's remove compatible code.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/generic/simple-card-utils.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sound/soc/generic/simple-card-utils.c b/sound/soc/generic/simple-card-utils.c
index 644cd62..b400dbf1f 100644
--- a/sound/soc/generic/simple-card-utils.c
+++ b/sound/soc/generic/simple-card-utils.c
@@ -376,13 +376,9 @@ EXPORT_SYMBOL_GPL(asoc_simple_card_init_dai);
 int asoc_simple_card_canonicalize_dailink(struct snd_soc_dai_link *dai_link)
 {
 	/* Assumes platform == cpu */
-	if (dai_link->platform) {
-		if (!dai_link->platform->of_node)
-			dai_link->platform->of_node = dai_link->cpu_of_node;
-	} else {
-		if (!dai_link->platform_of_node)
-			dai_link->platform_of_node = dai_link->cpu_of_node;
-	}
+	if (!dai_link->platform->of_node)
+		dai_link->platform->of_node = dai_link->cpu_of_node;
+
 	return 0;
 
 }
-- 
2.7.4

  parent reply	other threads:[~2018-08-20  5:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-20  5:09 [PATCH 00/15][RFC] ASoC: use snd_soc_dai_link_component style for simple card Kuninori Morimoto
2018-08-20  5:11 ` [PATCH 01/15][RFC] ASoC: simple_card_utils: support snd_soc_dai_link_component style for codec Kuninori Morimoto
2018-08-20  5:11 ` [PATCH 02/15][RFC] ASoC: simple-card: " Kuninori Morimoto
2018-08-20  5:11 ` [PATCH 03/15][RFC] ASoC: simple-scu-card: use simple_dai_props Kuninori Morimoto
2018-08-20  5:12 ` [PATCH 04/15][RFC] ASoC: simple-scu-card: support snd_soc_dai_link_component style for codec Kuninori Morimoto
2018-08-20  5:12 ` [PATCH 05/15][RFC] ASoC: audio-graph-card: " Kuninori Morimoto
2018-08-20  5:12 ` [PATCH 06/15][RFC] ASoC: audio-graph-scu-card: use simple_dai_props Kuninori Morimoto
2018-08-20  5:13 ` [PATCH 07/15][RFC] ASoC: audio-graph-scu-card: support snd_soc_dai_link_component style for codec Kuninori Morimoto
2018-08-20  5:13 ` [PATCH 08/15][RFC] ASoC: simple-card-util: remove dai_link compatible code " Kuninori Morimoto
2018-08-20  5:13 ` [PATCH 09/15][RFC] ASoC: soc-core: use snd_soc_dai_link_component for platform Kuninori Morimoto
2018-08-20  5:13 ` [PATCH 10/15][RFC] ASoC: simple-card-util: support snd_soc_dai_link_component style " Kuninori Morimoto
2018-08-20  5:13 ` [PATCH 11/15][RFC] ASoC: simple-card: " Kuninori Morimoto
2018-08-20  5:14 ` [PATCH 12/15][RFC] ASoC: simple-scu-card: " Kuninori Morimoto
2018-08-20  5:14 ` [PATCH 13/15][RFC] ASoC: audio-graph-card: " Kuninori Morimoto
2018-08-20  5:14 ` [PATCH 14/15][RFC] ASoC: audio-graph-scu-card: " Kuninori Morimoto
2018-08-20  5:14 ` Kuninori Morimoto [this message]
2018-08-21  6:47 ` [PATCH 00/15][RFC] ASoC: use snd_soc_dai_link_component style for simple card Kuninori Morimoto
2018-08-30 14:12   ` Mark Brown
2018-08-31  0:22     ` Kuninori Morimoto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87muthtyk0.wl-kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).