[PATCH] net: e1000: correct function signature of set_ethaddr
Lucas Stach
l.stach at pengutronix.de
Tue Sep 8 02:43:20 PDT 2015
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
drivers/net/e1000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index 6ef825928621..a7acfd00acc4 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -1106,7 +1106,7 @@ static int e1000_get_ethaddr(struct eth_device *edev, unsigned char *adr)
return 0;
}
-static int e1000_set_ethaddr(struct eth_device *edev, unsigned char *adr)
+static int e1000_set_ethaddr(struct eth_device *edev, const unsigned char *adr)
{
struct e1000_hw *hw = edev->priv;
uint32_t addr_low;
--
2.5.0
More information about the barebox
mailing list