Skip to content

Commit 11afdf3

Browse files
Russell King (Oracle)Paolo Abeni
authored andcommitted
net: pcs: xpcs: rename xpcs_config_usxgmii()
xpcs_config_usxgmii() is only called from the xpcs_link_up() method, so let's name it similarly to the SGMII and 1000BASEX functions. Signed-off-by: Russell King (Oracle) <[email protected]> Tested-by: Serge Semin <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 4145921 commit 11afdf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/pcs/pcs-xpcs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static int xpcs_read_fault_c73(struct dw_xpcs *xpcs,
311311
return 0;
312312
}
313313

314-
static void xpcs_config_usxgmii(struct dw_xpcs *xpcs, int speed)
314+
static void xpcs_link_up_usxgmii(struct dw_xpcs *xpcs, int speed)
315315
{
316316
int ret, speed_sel;
317317

@@ -1141,7 +1141,7 @@ static void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
11411141
struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs);
11421142

11431143
if (interface == PHY_INTERFACE_MODE_USXGMII)
1144-
return xpcs_config_usxgmii(xpcs, speed);
1144+
return xpcs_link_up_usxgmii(xpcs, speed);
11451145

11461146
if (interface == PHY_INTERFACE_MODE_SGMII ||
11471147
interface == PHY_INTERFACE_MODE_1000BASEX)

0 commit comments

Comments
 (0)