Skip to content

Commit a5ab9d8

Browse files
Ansueldavem330
authored andcommitted
net: phy: at803x: make at8031 related DT functions name more specific
Rename at8031 related DT function name to a more specific name referencing they are only related to at8031 and not to the generic at803x PHY family. Signed-off-by: Christian Marangi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 30dd621 commit a5ab9d8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/phy/at803x.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static int at803x_resume(struct phy_device *phydev)
583583
return phy_modify(phydev, MII_BMCR, BMCR_PDOWN | BMCR_ISOLATE, 0);
584584
}
585585

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,
587587
unsigned int selector)
588588
{
589589
struct phy_device *phydev = rdev_get_drvdata(rdev);
@@ -596,7 +596,7 @@ static int at803x_rgmii_reg_set_voltage_sel(struct regulator_dev *rdev,
596596
AT803X_DEBUG_RGMII_1V8, 0);
597597
}
598598

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)
600600
{
601601
struct phy_device *phydev = rdev_get_drvdata(rdev);
602602
int val;
@@ -610,8 +610,8 @@ static int at803x_rgmii_reg_get_voltage_sel(struct regulator_dev *rdev)
610610

611611
static const struct regulator_ops vddio_regulator_ops = {
612612
.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,
615615
};
616616

617617
static const unsigned int vddio_voltage_table[] = {
@@ -666,7 +666,7 @@ static int at8031_register_regulators(struct phy_device *phydev)
666666
return 0;
667667
}
668668

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)
670670
{
671671
struct phy_device *phydev = upstream;
672672
__ETHTOOL_DECLARE_LINK_MODE_MASK(phy_support);
@@ -710,10 +710,10 @@ static int at803x_sfp_insert(void *upstream, const struct sfp_eeprom_id *id)
710710
return 0;
711711
}
712712

713-
static const struct sfp_upstream_ops at803x_sfp_ops = {
713+
static const struct sfp_upstream_ops at8031_sfp_ops = {
714714
.attach = phy_sfp_attach,
715715
.detach = phy_sfp_detach,
716-
.module_insert = at803x_sfp_insert,
716+
.module_insert = at8031_sfp_insert,
717717
};
718718

719719
static int at803x_parse_dt(struct phy_device *phydev)
@@ -1519,7 +1519,7 @@ static int at8031_parse_dt(struct phy_device *phydev)
15191519
}
15201520

15211521
/* 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);
15231523
}
15241524

15251525
static int at8031_probe(struct phy_device *phydev)

0 commit comments

Comments
 (0)