mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
8017c4d817
commit
0a14501ed8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user