]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: nxp-c45-tja11xx: Rename functions to be c45 tja11xx specific
authorAriel D'Alessandro <ariel.dalessandro@collabora.com>
Tue, 12 Apr 2022 13:31:34 +0000 (10:31 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 12 Apr 2022 17:10:44 +0000 (19:10 +0200)
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 <ariel.dalessandro@collabora.com>
drivers/net/phy/nxp-c45-tja11xx.c
drivers/net/phy/phy.c
include/phy.h

index f86e31f0d9eb76c44597dbc9c7fe672697afb9f2..a0f41fab698320aff2c697fca688314f45336e1a 100644 (file)
@@ -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;
 }
index d4731860f73e3c6ee236f992a8aa97b7f6f032b7..e61c9b8a178452bdfffb8bc36cf438593d5c15c9 100644 (file)
@@ -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();
index 5e3da4b01b6c18329033004f09266bfb5a0136c7..807c2932fda10de83c06ac16983790a8e6d06001 100644 (file)
@@ -553,7 +553,7 @@ int phy_micrel_ksz8xxx_init(void);
 int phy_micrel_ksz90x1_init(void);
 int phy_meson_gxl_init(void);
 int phy_natsemi_init(void);
-int phy_nxp_tja11xx_init(void);
+int phy_nxp_c45_tja11xx_init(void);
 int phy_realtek_init(void);
 int phy_smsc_init(void);
 int phy_teranetics_init(void);