There are some helper functions which can be used to simplify the code. So, let's use these functions to make code more simple. v2: Fix a code logic broken problem and add the comment back. Zhang Zekun (2): ASoC: audio-graph-card: Use for_each_child_of_node_scoped() to simplify code ASoC: audio-graph-card2: Use helper function of_get_child_count() sound/soc/generic/audio-graph-card.c | 12 ++---------- sound/soc/generic/audio-graph-card2.c | 11 +---------- 2 files changed, 3 insertions(+), 20 deletions(-) -- 2.17.1
- Follow-Ups:
- Re: [PATCH v2 0/2] Some clean up with helper fucntion
- From: Mark Brown
- Re: [PATCH v2 0/2] Some clean up with helper fucntion
- From: Mark Brown
- Re: [PATCH v2 0/2] Some clean up with helper fucntion
- From: Kuninori Morimoto
- [PATCH v2 1/2] ASoC: audio-graph-card: Use for_each_child_of_node_scoped() to simplify code
- From: Zhang Zekun
- [PATCH v2 2/2] ASoC: audio-graph-card2: Use helper function of_get_child_count()
- From: Zhang Zekun
- Re: [PATCH v2 0/2] Some clean up with helper fucntion
- Prev by Date: Re: [PATCH 0/2] ALSA/DRM: vmalloc PCM buffer helper cleanup
- Next by Date: [PATCH v2 2/2] ASoC: audio-graph-card2: Use helper function of_get_child_count()
- Previous by thread: [syzbot] [sound?] WARNING in snd_pcm_open
- Next by thread: [PATCH v2 2/2] ASoC: audio-graph-card2: Use helper function of_get_child_count()
- Index(es):