linux/drivers/net/ethernet/realtek
Jakub Kicinski a05e4c0af4 ethernet: use eth_hw_addr_set() for dev->addr_len cases
Convert all Ethernet drivers from memcpy(... dev->addr_len)
to eth_hw_addr_set():

  @@
  expression dev, np;
  @@
  - memcpy(dev->dev_addr, np, dev->addr_len)
  + eth_hw_addr_set(dev, np)

In theory addr_len may not be ETH_ALEN, but we don't expect
non-Ethernet devices to live under this directory, and only
the following cases of setting addr_len exist:
 - cxgb4 for mgmt device,
and the drivers which set it to ETH_ALEN: s2io, mlx4, vxge.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-05 13:16:48 +01:00
..
8139cp.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
8139too.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
atp.c net: realtek: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
atp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile r8169: factor out PHY configuration to r8169_phy_config.c 2020-01-10 16:41:35 -08:00
r8169_firmware.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
r8169_firmware.h r8169: factor out firmware handling 2019-06-05 11:41:59 -07:00
r8169_main.c r8169: remove support for chip version RTL_GIGA_MAC_VER_27 2021-09-14 14:13:58 +01:00
r8169_phy_config.c r8169: remove support for chip version RTL_GIGA_MAC_VER_27 2021-09-14 14:13:58 +01:00
r8169.h r8169: remove support for chip version RTL_GIGA_MAC_VER_27 2021-09-14 14:13:58 +01:00