Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa2760dd authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: simple-card: use asoc_simple_card_of_parse_widgets()



Current simple card driver is supporting widgets on DT,
other simple/audio card drivers will support it.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_of_parse_widgets

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b31f11d0
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -354,13 +354,9 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)

	dai_link = of_get_child_by_name(node, PREFIX "dai-link");

	/* The off-codec widgets */
	if (of_property_read_bool(node, PREFIX "widgets")) {
		ret = snd_soc_of_parse_audio_simple_widgets(card,
					PREFIX "widgets");
		if (ret)
	ret = asoc_simple_card_of_parse_widgets(card, PREFIX);
	if (ret < 0)
		goto card_parse_end;
	}

	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 1);
	if (ret < 0)