ASoC: audio-graph-card2: Use helper function of_get_child_count()

of_get_child_count() can help to get the num of child directly and we
don't need to manually count the child num. No functional change with
this conversion.

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/20240827070650.11424-3-zhangzekun11@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Zhang Zekun 2024-08-27 15:06:50 +08:00 • committed by Mark Brown
commit 815f1fcf24
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0