@@ -180,7 +180,7 @@ static int dai_list_show(struct seq_file *m, void *v)
180
180
mutex_lock (& client_mutex );
181
181
182
182
for_each_component (component )
183
- list_for_each_entry ( dai , & component -> dai_list , list )
183
+ for_each_component_dais ( component , dai )
184
184
seq_printf (m , "%s \n ", dai - > name );
185
185
186
186
mutex_unlock (& client_mutex );
@@ -781,7 +781,7 @@ struct snd_soc_dai *snd_soc_find_dai(
781
781
for_each_component (component ) {
782
782
if (!snd_soc_is_matching_component (dlc , component ))
783
783
continue ;
784
- list_for_each_entry ( dai , & component -> dai_list , list ) {
784
+ for_each_component_dais ( component , dai ) {
785
785
if (dlc -> dai_name && strcmp (dai -> name , dlc -> dai_name )
786
786
&& (!dai -> driver -> name
787
787
|| strcmp (dai -> driver -> name , dlc -> dai_name )))
@@ -1312,7 +1312,7 @@ static int soc_probe_component(struct snd_soc_card *card,
1312
1312
}
1313
1313
}
1314
1314
1315
- list_for_each_entry ( dai , & component -> dai_list , list ) {
1315
+ for_each_component_dais ( component , dai ) {
1316
1316
ret = snd_soc_dapm_new_dai_widgets (dapm , dai );
1317
1317
if (ret != 0 ) {
1318
1318
dev_err (component -> dev ,
@@ -2842,7 +2842,7 @@ static void snd_soc_unregister_dais(struct snd_soc_component *component)
2842
2842
{
2843
2843
struct snd_soc_dai * dai , * _dai ;
2844
2844
2845
- list_for_each_entry_safe ( dai , _dai , & component -> dai_list , list ) {
2845
+ for_each_component_dais_safe ( component , dai , _dai ) {
2846
2846
dev_dbg (component -> dev , "ASoC: Unregistered DAI '%s'\n" ,
2847
2847
dai -> name );
2848
2848
list_del (& dai -> list );
@@ -2894,6 +2894,7 @@ static struct snd_soc_dai *soc_add_dai(struct snd_soc_component *component,
2894
2894
if (!dai -> driver -> ops )
2895
2895
dai -> driver -> ops = & null_dai_ops ;
2896
2896
2897
+ /* see for_each_component_dais */
2897
2898
list_add_tail (& dai -> list , & component -> dai_list );
2898
2899
component -> num_dai ++ ;
2899
2900
@@ -3728,7 +3729,7 @@ int snd_soc_get_dai_name(struct of_phandle_args *args,
3728
3729
ret = 0 ;
3729
3730
3730
3731
/* find target DAI */
3731
- list_for_each_entry ( dai , & pos -> dai_list , list ) {
3732
+ for_each_component_dais ( pos , dai ) {
3732
3733
if (id == 0 )
3733
3734
break ;
3734
3735
id -- ;
0 commit comments