mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
include: Convert ethernet mac address declarations to use ETH_ALEN
It's convenient to have ethernet mac addresses use ETH_ALEN to be able to grep for them a bit easier and also to ensure that the addresses are __aligned(2). Add #include <linux/if_ether.h> as necessary. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
e216975ad9
commit
574e2af7c0
@@ -6,6 +6,7 @@
|
||||
#define __LINUX_MV643XX_ETH_H
|
||||
|
||||
#include <linux/mbus.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#define MV643XX_ETH_SHARED_NAME "mv643xx_eth"
|
||||
#define MV643XX_ETH_NAME "mv643xx_eth_port"
|
||||
@@ -48,7 +49,7 @@ struct mv643xx_eth_platform_data {
|
||||
* Use this MAC address if it is valid, overriding the
|
||||
* address that is already in the hardware.
|
||||
*/
|
||||
u8 mac_addr[6];
|
||||
u8 mac_addr[ETH_ALEN];
|
||||
|
||||
/*
|
||||
* If speed is 0, autonegotiation is enabled.
|
||||
|
||||
Reference in New Issue
Block a user