mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
ASoC: simple_card_utils: add simple_util_parse_aux_devs()
We are using snd_soc_of_parse_aux_devs() directly, but can use simple_util_parse_property(). use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/878q7uxiyr.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7ad9d917e2
commit
d0ab37b028
|
|
@ -210,6 +210,11 @@ static inline int simple_util_parse_pin_switches(struct simple_util_priv *priv,
|
|||
prefix, "pin-switches");
|
||||
}
|
||||
|
||||
static inline int simple_util_parse_aux_devs(struct simple_util_priv *priv, char *prefix)
|
||||
{
|
||||
return simple_util_parse_property(priv, snd_soc_of_parse_aux_devs,
|
||||
prefix, "aux-devs");
|
||||
}
|
||||
|
||||
int simple_util_init_jack(struct snd_soc_card *card,
|
||||
struct simple_util_jack *sjack,
|
||||
|
|
|
|||
|
|
@ -1363,7 +1363,7 @@ int audio_graph2_parse_of(struct simple_util_priv *priv, struct device *dev,
|
|||
|
||||
simple_util_debug_info(priv);
|
||||
|
||||
ret = snd_soc_of_parse_aux_devs(card, "aux-devs");
|
||||
ret = simple_util_parse_aux_devs(priv, NULL);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
|
|
@ -720,7 +720,7 @@ static int simple_parse_of(struct simple_util_priv *priv)
|
|||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
ret = snd_soc_of_parse_aux_devs(card, PREFIX "aux-devs");
|
||||
ret = simple_util_parse_aux_devs(priv, PREFIX);
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user