lkml.org 
[lkml]   [2023]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] net: phy: Rename KSZ9477 get features function (to ksz9131_get_features)
Date
The KSZ9131 differs in supported features from KSZ9477 - namely in the
EEE (Energy Efficient Ethernet) support.

To prepare the code for upcoming changes the ksz9477_get_features
has been renamed to ksz9131_get_features.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---
drivers/net/phy/micrel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index b6d7981b2d1e..87b090ad2874 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -1398,7 +1398,7 @@ static int ksz9131_config_aneg(struct phy_device *phydev)
return genphy_config_aneg(phydev);
}

-static int ksz9477_get_features(struct phy_device *phydev)
+static int ksz9131_get_features(struct phy_device *phydev)
{
int ret;

@@ -4829,7 +4829,7 @@ static struct phy_driver ksphy_driver[] = {
.resume = kszphy_resume,
.cable_test_start = ksz9x31_cable_test_start,
.cable_test_get_status = ksz9x31_cable_test_get_status,
- .get_features = ksz9477_get_features,
+ .get_features = ksz9131_get_features,
}, {
.phy_id = PHY_ID_KSZ8873MLL,
.phy_id_mask = MICREL_PHY_ID_MASK,
@@ -4871,7 +4871,7 @@ static struct phy_driver ksphy_driver[] = {
.handle_interrupt = kszphy_handle_interrupt,
.suspend = genphy_suspend,
.resume = genphy_resume,
- .get_features = ksz9477_get_features,
+ .get_features = ksz9131_get_features,
} };

module_phy_driver(ksphy_driver);
--
2.20.1
\
 
 \ /
  Last update: 2023-08-30 20:56    [W:2.240 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site