]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: ingenic: prep PHY_INTF_SEL_x field after switch()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 7 Nov 2025 08:28:55 +0000 (08:28 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Nov 2025 01:30:39 +0000 (17:30 -0800)
commit14497aaa5eb63f7d77cf72c281afe330baea970b
treed7fa5b64a80b21f114c05ff73d8f5ce7bfa6c6b5
parentdbf99dc7d166944df4af1f52351a355512e1c573
net: stmmac: ingenic: prep PHY_INTF_SEL_x field after switch()

Move the preparation of the PHY_INTF_SEL_x bitfield out of the switch()
statement such that it only appears once.

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vHHq3-0000000DjrD-1u8O@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c