linux/drivers/media
Jakub Kicinski 707182e45b media: use eth_hw_addr_set()
Commit 406f42fa0d ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it go through appropriate helpers.

Convert media from memcpy(... 6) and memcpy(... addr_len) to
eth_hw_addr_set():

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

Make sure we don't cast off const qualifier from dev->dev_addr.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-28 12:46:31 +01:00
..
cec media: tegra-cec: Handle errors of clk_prepare_enable() 2021-08-04 14:43:52 +02:00
common media fixes for v5.14-rc5 2021-08-03 09:33:05 -07:00
dvb-core media: use eth_hw_addr_set() 2021-10-28 12:46:31 +01:00
dvb-frontends media: dvb-frontends: cx24117: Delete 'break' after 'goto' 2021-07-12 14:28:10 +02:00
firewire module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
i2c Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
mc media: mc-device.c: use DEVICE_ATTR_RO() helper macro 2021-08-04 14:43:50 +02:00
mmc
pci media updates for v5.15-rc1 2021-09-01 10:34:52 -07:00
platform asm-generic: build fixes for v5.15 2021-10-08 11:57:54 -07:00
radio media: radio: si4713: constify static struct v4l2_ioctl_ops 2021-06-02 13:26:11 +02:00
rc media: ir_toy: prevent device from hanging during transmit 2021-09-19 11:19:37 +02:00
spi media: cxd2880-spi: Fix an error handling path 2021-07-12 14:27:47 +02:00
test-drivers media: vivid: increase max number of allowed 2021-07-12 09:16:36 +02:00
tuners media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-03-22 17:41:39 +01:00
usb media updates for v5.15-rc1 2021-09-01 10:34:52 -07:00
v4l2-core media: v4l2-ctrls: Add intra-refresh period control 2021-08-04 14:43:52 +02:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile