]> git.baikalelectronics.ru Git - kernel.git/commit
eth: fwnode: change the return type of mac address helpers
authorJakub Kicinski <kuba@kernel.org>
Thu, 7 Oct 2021 01:06:58 +0000 (18:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Oct 2021 12:39:51 +0000 (13:39 +0100)
commitf47d65d34cdbc8c8739498603169e9590acf3c6c
treec2bf02641bbbf8eef2b8bf3c2c494ecb9ffe57cf
parent4c50de4552c3f8a4f170c24c0c2dc157ba35fa1b
eth: fwnode: change the return type of mac address helpers

fwnode_get_mac_address() and device_get_mac_address()
return a pointer to the buffer that was passed to them
on success or NULL on failure. None of the callers
care about the actual value, only if it's NULL or not.

These semantics differ from of_get_mac_address() which
returns an int so to avoid confusion make the device
helpers return an errno.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 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/socionext/netsec.c
include/linux/etherdevice.h
net/ethernet/eth.c