]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: place .mac_finish() method more appropriately
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Oct 2025 16:10:46 +0000 (17:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 22:58:22 +0000 (15:58 -0700)
commit0bc832a54d274c15c54f2a55995a485e490309b9
tree1997cbd3273138086384083689060fd4adcdc171
parent12a7b7bc14273e19a57a49e0ab92e7eb635de8a4
net: stmmac: place .mac_finish() method more appropriately

Place the .mac_finish() initialiser and implementation after the
.mac_config() initialiser and method which reflects the order that
they appear in struct phylink_mac_ops, and the order in which they
are called. This keeps logically similar code together.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1v945O-0000000AmeP-1k0t@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c