diff options
author | 2021-10-06 18:06:59 -0700 | |
---|---|---|
committer | 2021-10-07 13:39:51 +0100 | |
commit | 0a14501ed818ff51eed237bbe5009d0d784e4450 (patch) | |
tree | 38ecb48669d93876eb747ec0b2e27c2f52563364 /include | |
parent | eth: fwnode: change the return type of mac address helpers (diff) | |
download | linux-0a14501ed818ff51eed237bbe5009d0d784e4450.tar.gz linux-0a14501ed818ff51eed237bbe5009d0d784e4450.tar.bz2 linux-0a14501ed818ff51eed237bbe5009d0d784e4450.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/etherdevice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 8299f1cd9175..bb612c7382e3 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -31,8 +31,8 @@ struct fwnode_handle; int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); unsigned char *arch_get_platform_mac_address(void); int nvmem_get_mac_address(struct device *dev, void *addrbuf); -int device_get_mac_address(struct device *dev, char *addr, int alen); -int fwnode_get_mac_address(struct fwnode_handle *fwnode, char *addr, int alen); +int device_get_mac_address(struct device *dev, char *addr); +int fwnode_get_mac_address(struct fwnode_handle *fwnode, char *addr); u32 eth_get_headlen(const struct net_device *dev, const void *data, u32 len); __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); |