Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <rmk+kernel@armlinux.org.uk>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Russell King (Oracle) and committed by
Paolo Abeni
11afdf3b 4145921c

+2 -2
+2 -2
drivers/net/pcs/pcs-xpcs.c
··· 311 311 return 0; 312 312 } 313 313 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) 315 315 { 316 316 int ret, speed_sel; 317 317 ··· 1141 1141 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); 1142 1142 1143 1143 if (interface == PHY_INTERFACE_MODE_USXGMII) 1144 - return xpcs_config_usxgmii(xpcs, speed); 1144 + return xpcs_link_up_usxgmii(xpcs, speed); 1145 1145 1146 1146 if (interface == PHY_INTERFACE_MODE_SGMII || 1147 1147 interface == PHY_INTERFACE_MODE_1000BASEX)