]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ethernet: cortina: Rename adjust link callback
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 May 2024 14:00:00 +0000 (16:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Jun 2024 23:07:29 +0000 (16:07 -0700)
The callback passed to of_phy_get_and_connect() in the
Cortina Gemini driver is called "gmac_speed_set" which is
archaic, rename it to "gmac_adjust_link" following the
pattern of most other drivers.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240529-gemini-phylib-fixes-v4-1-16487ca4c2fe@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cortina/gemini.c

index 7ebd61a3a49b090e31e87915e8aa1c0ccc5ffad1..8de68a257611406e5dc7c0706a647111131bbee3 100644 (file)
@@ -288,7 +288,7 @@ static void gmac_set_flow_control(struct net_device *netdev, bool tx, bool rx)
        spin_unlock_irqrestore(&port->config_lock, flags);
 }
 
-static void gmac_speed_set(struct net_device *netdev)
+static void gmac_adjust_link(struct net_device *netdev)
 {
        struct gemini_ethernet_port *port = netdev_priv(netdev);
        struct phy_device *phydev = netdev->phydev;
@@ -367,7 +367,7 @@ static int gmac_setup_phy(struct net_device *netdev)
 
        phy = of_phy_get_and_connect(netdev,
                                     dev->of_node,
-                                    gmac_speed_set);
+                                    gmac_adjust_link);
        if (!phy)
                return -ENODEV;
        netdev->phydev = phy;