From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Jaroslav Kysela <perex@perex.cz>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-sound@vger.kernel.org, Mark Brown <broonie@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Takashi Iwai <tiwai@suse.com>
Subject: [PATCH 2/6] ASoC: mediatek: mtk-soundcard-driver: tidyup set_card_codec_info()
Date: Mon, 8 Jun 2026 01:24:48 +0000 [thread overview]
Message-ID: <87fr2xesdc.wl-kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87ik7tesdw.wl-kuninori.morimoto.gx@renesas.com>
set_card_codec_info() requests *card, but necessary is card->dev.
Tidyup it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
sound/soc/mediatek/common/mtk-soundcard-driver.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/mediatek/common/mtk-soundcard-driver.c b/sound/soc/mediatek/common/mtk-soundcard-driver.c
index 24118217fe5c2..720216b32a0f4 100644
--- a/sound/soc/mediatek/common/mtk-soundcard-driver.c
+++ b/sound/soc/mediatek/common/mtk-soundcard-driver.c
@@ -15,11 +15,10 @@
#include "mtk-soc-card.h"
#include "mtk-soundcard-driver.h"
-static int set_card_codec_info(struct snd_soc_card *card,
+static int set_card_codec_info(struct device *dev,
struct device_node *sub_node,
struct snd_soc_dai_link *dai_link)
{
- struct device *dev = card->dev;
struct device_node *codec_node;
int ret;
@@ -107,7 +106,7 @@ int parse_dai_link_info(struct snd_soc_card *card)
if (i >= card->num_links)
return -EINVAL;
- ret = set_card_codec_info(card, sub_node, dai_link);
+ ret = set_card_codec_info(dev, sub_node, dai_link);
if (ret < 0)
return ret;
--
2.53.0
next prev parent reply other threads:[~2026-06-08 1:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 1:24 [PATCH 0/6] ASoC: mediatek: tidyup details Kuninori Morimoto
2026-06-08 1:24 ` [PATCH 1/6] ASoC: mediatek: cleanup mtk_sof_dailink_parse_of() param Kuninori Morimoto
2026-06-08 1:24 ` Kuninori Morimoto [this message]
2026-06-08 1:24 ` [PATCH 3/6] ASoC: mediatek: mtk-soundcard-driver: tidyup set_dailink_daifmt() Kuninori Morimoto
2026-06-08 1:24 ` [PATCH 4/6] ASoC: mediatek: mt8186-mt6366: tidyup mt8186_mt6366_card_set_be_link() Kuninori Morimoto
2026-06-08 1:24 ` [PATCH 5/6] ASoC: mediatek: mt8186-mt6366: use *dev in mt8186_mt6366_soc_card_probe() Kuninori Morimoto
2026-06-08 1:25 ` [PATCH 6/6] ASoC: mediatek: mt8365_mt6357: use *dev in mt8365_mt6357_gpio_probe() Kuninori Morimoto
2026-06-12 15:07 ` [PATCH 0/6] ASoC: mediatek: tidyup details Mark Brown
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=87fr2xesdc.wl-kuninori.morimoto.gx@renesas.com \
--to=kuninori.morimoto.gx@renesas.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.