ASoC: audio-graph-card: remove ports node name check
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 28 May 2024 05:05:40 +0000 (05:05 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Jun 2024 14:59:39 +0000 (15:59 +0100)
commit84c9601a92b755f869ac811607402e5b2162c225
tree343685dac097beecb709302ab0a74686a49e83b2
parentdf23fcd56bb75ab522350bd8cb52bde9067aea45
ASoC: audio-graph-card: remove ports node name check

Current audio-graph-card is checking if the node name was "ports" or
not when parsing the property.

if (of_node_name_eq(ports, "ports"))
of_xxx(ports, ...);

Now, it is using new port_to_ports() which will be NULL if the node
doesn't have "ports", and each of_xxx functions will do nothing if
node was NULL.
Now we don't need to check ports node name. Let's remove and cleanup it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://msgid.link/r/871q5mh6fv.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c