summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAriel D'Alessandro <[email protected]>2022-04-12 10:31:34 -0300
committerStefano Babic <[email protected]>2022-04-12 19:10:44 +0200
commit01c67a381c3e7dc70ad75b4d69ae3c82dff5afa8 (patch)
tree3a6b99706f592fa5e6bb9fe373f538e8e9ba01ef /drivers
parent1dd4985ed485565c38a93792b33c17093b324472 (diff)
phy: nxp-c45-tja11xx: Rename functions to be c45 tja11xx specific
This driver supports NXP C45 TJA11XX PHYs, but there're also other NXP TJA11XX PHYs. Let's rename functions in this driver to be c45 variant specific, so further drivers can be introduced adding support for NXP TJA11XX PHYs. Signed-off-by: Ariel D'Alessandro <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/nxp-c45-tja11xx.c6
-rw-r--r--drivers/net/phy/phy.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c
index f86e31f0d9e..a0f41fab698 100644
--- a/drivers/net/phy/nxp-c45-tja11xx.c
+++ b/drivers/net/phy/nxp-c45-tja11xx.c
@@ -330,7 +330,7 @@ static int nxp_c45_probe(struct phy_device *phydev)
return 0;
}
-static struct phy_driver nxp_tja11xx = {
+static struct phy_driver nxp_c45_tja11xx = {
.name = "NXP C45 TJA1103",
.uid = PHY_ID_TJA_1103,
.mask = 0xfffff0,
@@ -341,8 +341,8 @@ static struct phy_driver nxp_tja11xx = {
.shutdown = &genphy_shutdown,
};
-int phy_nxp_tja11xx_init(void)
+int phy_nxp_c45_tja11xx_init(void)
{
- phy_register(&nxp_tja11xx);
+ phy_register(&nxp_c45_tja11xx);
return 0;
}
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index d4731860f73..e61c9b8a178 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -530,7 +530,7 @@ int phy_init(void)
phy_natsemi_init();
#endif
#ifdef CONFIG_NXP_C45_TJA11XX_PHY
- phy_nxp_tja11xx_init();
+ phy_nxp_c45_tja11xx_init();
#endif
#ifdef CONFIG_PHY_REALTEK
phy_realtek_init();