net: usb: use eth_hw_addr_set() for dev->addr_len cases
authorJakub Kicinski <kuba@kernel.org>
Mon, 4 Oct 2021 16:05:22 +0000 (09:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 12:16:48 +0000 (13:16 +0100)
commit49ed8dde371522b2d330a7383aaa213748ad007e
tree52a737009b7e0d15d3c44640513eacef60d9b1dc
parenta05e4c0af490ca7c22fc77120aafebebdeaaf537
net: usb: use eth_hw_addr_set() for dev->addr_len cases

Convert usb 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)

Manually checked these are either usbnet or pure etherdevs.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/dm9601.c
drivers/net/usb/mcs7830.c
drivers/net/usb/r8152.c
drivers/net/usb/rtl8150.c
drivers/net/usb/sr9700.c