[PATCH 2/4] net: enc28j60: fix set mac function signature

Lucas Stach l.stach at pengutronix.de
Mon Jul 27 08:48:31 PDT 2015


Fixes:
drivers/net/enc28j60.c: In function 'enc28j60_probe':
drivers/net/enc28j60.c:947:20: warning: assignment from incompatible pointer type
  edev->set_ethaddr = enc28j60_set_ethaddr;

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 drivers/net/enc28j60.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c
index 76b3df63f6ec..6550c59fc8d2 100644
--- a/drivers/net/enc28j60.c
+++ b/drivers/net/enc28j60.c
@@ -422,7 +422,7 @@ static int enc28j60_get_ethaddr(struct eth_device *edev, unsigned char *m)
  * Program the hardware MAC address from dev->dev_addr.
  */
 static int enc28j60_set_ethaddr(struct eth_device *edev,
-					unsigned char *mac_addr)
+				const unsigned char *mac_addr)
 {
 	int ret;
 	struct enc28j60_net *priv = edev->priv;
-- 
2.1.4




More information about the barebox mailing list