]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: visconti: make phy_intf_sel local
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 16 Jun 2025 21:06:32 +0000 (22:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 23:25:20 +0000 (16:25 -0700)
commitd54d42a41b65d79ac4aacfbe1b3374eec217ceb4
tree1a3e52280ae91c44e19299281d03a402d9a3f4d8
parent1a3a638d2d23467cd9db06eb2bfdf4c185a8e9db
net: stmmac: visconti: make phy_intf_sel local

There is little need to have phy_intf_sel as a member of struct
visconti_eth when we have the PHY interface mode available from
phylink in visconti_eth_set_clk_tx_rate(). Without multiple
interface support, phylink is fixed to supporting only
plat->phy_interface, so we can be sure that "interface" passed
into this function is the same as plat->phy_interface.

Make phy_intf_sel local to visconti_eth_init_hw() and clean up.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1uRH2G-004UyY-GD@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-visconti.c