diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2016-05-14 05:55:50 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-16 17:55:49 (GMT) |
commit | c3875ca7d9f9ad135debc78e211ea062ac48323c (patch) | |
tree | 8175848962e7b2aa6887a6f1a89a9acc7a1460f4 /drivers/net/ethernet/wiznet/w5100.h | |
parent | 7d6da453efce17fae35707fa7e5757e7ade8b3cc (diff) | |
download | linux-c3875ca7d9f9ad135debc78e211ea062ac48323c.tar.xz |
net: w5100-spi: add support to specify MAC address by device tree
This adds support to specify the MAC address by 'mac-address' or
'local-mac-address' properties in the device tree. These are common
properties for the Ethernet controller.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Mike Sinkovsky <msink@permonline.ru>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/wiznet/w5100.h')
-rw-r--r-- | drivers/net/ethernet/wiznet/w5100.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/wiznet/w5100.h b/drivers/net/ethernet/wiznet/w5100.h index f8a16fa..17983a3 100644 --- a/drivers/net/ethernet/wiznet/w5100.h +++ b/drivers/net/ethernet/wiznet/w5100.h @@ -30,7 +30,8 @@ struct w5100_ops { void *w5100_ops_priv(const struct net_device *ndev); int w5100_probe(struct device *dev, const struct w5100_ops *ops, - int sizeof_ops_priv, u8 *mac_addr, int irq, int link_gpio); + int sizeof_ops_priv, const void *mac_addr, int irq, + int link_gpio); int w5100_remove(struct device *dev); extern const struct dev_pm_ops w5100_pm_ops; |