@@ -583,7 +583,7 @@ static int at803x_resume(struct phy_device *phydev)
583
583
return phy_modify (phydev , MII_BMCR , BMCR_PDOWN | BMCR_ISOLATE , 0 );
584
584
}
585
585
586
- static int at803x_rgmii_reg_set_voltage_sel (struct regulator_dev * rdev ,
586
+ static int at8031_rgmii_reg_set_voltage_sel (struct regulator_dev * rdev ,
587
587
unsigned int selector )
588
588
{
589
589
struct phy_device * phydev = rdev_get_drvdata (rdev );
@@ -596,7 +596,7 @@ static int at803x_rgmii_reg_set_voltage_sel(struct regulator_dev *rdev,
596
596
AT803X_DEBUG_RGMII_1V8 , 0 );
597
597
}
598
598
599
- static int at803x_rgmii_reg_get_voltage_sel (struct regulator_dev * rdev )
599
+ static int at8031_rgmii_reg_get_voltage_sel (struct regulator_dev * rdev )
600
600
{
601
601
struct phy_device * phydev = rdev_get_drvdata (rdev );
602
602
int val ;
@@ -610,8 +610,8 @@ static int at803x_rgmii_reg_get_voltage_sel(struct regulator_dev *rdev)
610
610
611
611
static const struct regulator_ops vddio_regulator_ops = {
612
612
.list_voltage = regulator_list_voltage_table ,
613
- .set_voltage_sel = at803x_rgmii_reg_set_voltage_sel ,
614
- .get_voltage_sel = at803x_rgmii_reg_get_voltage_sel ,
613
+ .set_voltage_sel = at8031_rgmii_reg_set_voltage_sel ,
614
+ .get_voltage_sel = at8031_rgmii_reg_get_voltage_sel ,
615
615
};
616
616
617
617
static const unsigned int vddio_voltage_table [] = {
@@ -666,7 +666,7 @@ static int at8031_register_regulators(struct phy_device *phydev)
666
666
return 0 ;
667
667
}
668
668
669
- static int at803x_sfp_insert (void * upstream , const struct sfp_eeprom_id * id )
669
+ static int at8031_sfp_insert (void * upstream , const struct sfp_eeprom_id * id )
670
670
{
671
671
struct phy_device * phydev = upstream ;
672
672
__ETHTOOL_DECLARE_LINK_MODE_MASK (phy_support );
@@ -710,10 +710,10 @@ static int at803x_sfp_insert(void *upstream, const struct sfp_eeprom_id *id)
710
710
return 0 ;
711
711
}
712
712
713
- static const struct sfp_upstream_ops at803x_sfp_ops = {
713
+ static const struct sfp_upstream_ops at8031_sfp_ops = {
714
714
.attach = phy_sfp_attach ,
715
715
.detach = phy_sfp_detach ,
716
- .module_insert = at803x_sfp_insert ,
716
+ .module_insert = at8031_sfp_insert ,
717
717
};
718
718
719
719
static int at803x_parse_dt (struct phy_device * phydev )
@@ -1519,7 +1519,7 @@ static int at8031_parse_dt(struct phy_device *phydev)
1519
1519
}
1520
1520
1521
1521
/* Only AR8031/8033 support 1000Base-X for SFP modules */
1522
- return phy_sfp_probe (phydev , & at803x_sfp_ops );
1522
+ return phy_sfp_probe (phydev , & at8031_sfp_ops );
1523
1523
}
1524
1524
1525
1525
static int at8031_probe (struct phy_device * phydev )
0 commit comments