]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: audio-graph-card2: Use helper function of_get_child_count()
authorZhang Zekun <zhangzekun11@huawei.com>
Tue, 27 Aug 2024 07:06:50 +0000 (15:06 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2024 17:31:15 +0000 (18:31 +0100)
commit815f1fcf2403454904cbbc5cf370df6bc300f392
tree483307fa771a6b6078b3588b520b710dde42a211
parentde849243404e8ce02320a7178d4448e4d0191377
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>
sound/soc/generic/audio-graph-card2.c