[PATCH RFC 1/2] ASoC: meson: meson-card-utils: use meson_card_parse_of_optional()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Mon Jul 20 18:36:51 PDT 2026
We already have meson_card_parse_of_optional(). Let's use it for
snd_soc_of_parse_aux_devs() too.
It is using snd_soc_of_parse_card_name(), but let's keep as-is
for it for now. Beuase it will be not able to share code when
Card capsuling.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
sound/soc/meson/meson-card-utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c
index 8617a4661a339..d144ab79b645b 100644
--- a/sound/soc/meson/meson-card-utils.c
+++ b/sound/soc/meson/meson-card-utils.c
@@ -300,7 +300,8 @@ int meson_card_probe(struct platform_device *pdev)
if (ret)
goto out_err;
- ret = snd_soc_of_parse_aux_devs(&priv->card, "audio-aux-devs");
+ ret = meson_card_parse_of_optional(&priv->card, "audio-aux-devs",
+ snd_soc_of_parse_aux_devs);
if (ret)
goto out_err;
--
2.53.0
More information about the linux-arm-kernel
mailing list