]> git.baikalelectronics.ru Git - kernel.git/commit
eth: fwnode: remove the addr len from mac helpers
authorJakub Kicinski <kuba@kernel.org>
Thu, 7 Oct 2021 01:06:59 +0000 (18:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Oct 2021 12:39:51 +0000 (13:39 +0100)
commit1257db52ee78711771d7bbfca7434187c993c97b
tree38ecb48669d93876eb747ec0b2e27c2f52563364
parentf47d65d34cdbc8c8739498603169e9590acf3c6c
eth: fwnode: remove the addr len from mac helpers

All callers pass in ETH_ALEN and the function itself
will return -EINVAL for any other address length.
Just assume it's ETH_ALEN like all other mac address
helpers (nvm, of, platform).

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
14 files changed:
drivers/net/ethernet/apm/xgene-v2/main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/faraday/ftgmac100.c
drivers/net/ethernet/hisilicon/hns/hns_enet.c
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/ethernet/microchip/enc28j60.c
drivers/net/ethernet/qualcomm/emac/emac.c
drivers/net/ethernet/smsc/smsc911x.c
drivers/net/ethernet/socionext/netsec.c
drivers/net/wireless/ath/ath10k/core.c
include/linux/etherdevice.h
net/ethernet/eth.c