@@ -6530,11 +6530,6 @@ static void alc287_fixup_legion_15imhg05_speakers(struct hda_codec *codec,
6530
6530
}
6531
6531
}
6532
6532
6533
- static int comp_match_dev_name (struct device * dev , void * data )
6534
- {
6535
- return strcmp (dev_name (dev ), data ) == 0 ;
6536
- }
6537
-
6538
6533
static int find_comp_by_dev_name (struct alc_spec * spec , const char * name )
6539
6534
{
6540
6535
int i ;
@@ -6595,7 +6590,7 @@ static void cs35l41_generic_fixup(struct hda_codec *cdc, int action, const char
6595
6590
"%s-%s:00-cs35l41-hda.%d" , bus , hid , i );
6596
6591
if (!name )
6597
6592
return ;
6598
- component_match_add (dev , & spec -> match , comp_match_dev_name , name );
6593
+ component_match_add (dev , & spec -> match , component_compare_dev_name , name );
6599
6594
}
6600
6595
ret = component_master_add_with_match (dev , & comp_master_ops , spec -> match );
6601
6596
if (ret )
@@ -6644,9 +6639,9 @@ static void alc287_fixup_legion_16achg6_speakers(struct hda_codec *cdc, const st
6644
6639
6645
6640
switch (action ) {
6646
6641
case HDA_FIXUP_ACT_PRE_PROBE :
6647
- component_match_add (dev , & spec -> match , comp_match_dev_name ,
6642
+ component_match_add (dev , & spec -> match , component_compare_dev_name ,
6648
6643
"i2c-CLSA0100:00-cs35l41-hda.0" );
6649
- component_match_add (dev , & spec -> match , comp_match_dev_name ,
6644
+ component_match_add (dev , & spec -> match , component_compare_dev_name ,
6650
6645
"i2c-CLSA0100:00-cs35l41-hda.1" );
6651
6646
ret = component_master_add_with_match (dev , & comp_master_ops , spec -> match );
6652
6647
if (ret )
0 commit comments