net: pcs: xpcs: rename xpcs_get_id()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 4 Oct 2024 10:21:06 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:13:11 +0000 (12:13 +0100)
Rename xpcs_get_id() to xpcs_read_id() which more closely reflects
the purpose of this function.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c

index a7f6d56183a72432f4a40b05ae3900c9bd6031ca..db3f50f195ab1c9bd3e33f028027962b0f519379 100644 (file)
@@ -1190,7 +1190,7 @@ static void xpcs_an_restart(struct phylink_pcs *pcs)
        }
 }
 
-static int xpcs_get_id(struct dw_xpcs *xpcs)
+static int xpcs_read_ids(struct dw_xpcs *xpcs)
 {
        int ret;
        u32 id;
@@ -1405,7 +1405,7 @@ static int xpcs_init_id(struct dw_xpcs *xpcs)
                xpcs->info = *info;
        }
 
-       ret = xpcs_get_id(xpcs);
+       ret = xpcs_read_ids(xpcs);
        if (ret < 0)
                return ret;