summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2026-06-08 04:24:48 +0300
committerMark Brown <broonie@kernel.org>2026-06-12 18:07:00 +0300
commit1ddd7dcbc858a580449e8afa602df63456ad4c6b (patch)
tree57de9fa6bfcd1b8630022ac3cdb78a1ee3e3ce08
parentd7d3dc1dd345b505d2f02175464ff0b12e5ea37e (diff)
downloadlinux-1ddd7dcbc858a580449e8afa602df63456ad4c6b.tar.xz
ASoC: mediatek: mtk-soundcard-driver: tidyup set_card_codec_info()
set_card_codec_info() requests *card, but necessary is card->dev. Tidyup it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87fr2xesdc.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/mediatek/common/mtk-soundcard-driver.c5
1 files 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 24118217fe5c..720216b32a0f 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;