]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fec: add fec_set_hw_mac_addr() helper function
authorWei Fang <wei.fang@nxp.com>
Fri, 11 Jul 2025 09:16:39 +0000 (17:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Jul 2025 00:14:32 +0000 (17:14 -0700)
commitd39e1342d045e56d56756f91f93bc883fc9a5934
tree59ee726bd17f52169aca2a5a11dfb24752834c9f
parent2d33dc6058157d91c5b76b7380bbc27d72595d2c
net: fec: add fec_set_hw_mac_addr() helper function

In the current driver, the MAC address is set in both fec_restart() and
fec_set_mac_address(), so a generic helper function fec_set_hw_mac_addr()
is added to set the hardware MAC address to make the code more compact.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250711091639.1374411-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c