]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: get rid of rk_phy_power_ctl()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 26 Jan 2026 11:45:08 +0000 (11:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Jan 2026 18:40:06 +0000 (10:40 -0800)
commitaf6eaf70189785c4b616c7bea75c1b46bb8498bc
treeccd240e0eeffd4b900260c7435b70f6500a043ce
parenta0094edaf4920689dd6c26cb14a929ae80e290a0
net: stmmac: rk: get rid of rk_phy_power_ctl()

It is not worth having a common rk_phy_power_ctl() when the only
difference is which regulator function is called. Also, passing
true/false is non-descriptive. Split this function, moving the code
appropriately into rk_phy_powerup() and rk_phy_powerdown().

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vkL1o-00000005usJ-08hy@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c