summaryrefslogtreecommitdiff
path: root/include/linux/sh_eth.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-08-01 16:17:48 -0700
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:51:33 +0900
commit468e5aaffb17f4c35ade8c0145f2c35ea58e715a (patch)
treece45e8d8514f7f1ef5417b7aacf48cc55c3d11f3 /include/linux/sh_eth.h
parente26c3c1352fcfb60c6fc1bc433088d8887a86773 (diff)
downloadlinux-3.10-468e5aaffb17f4c35ade8c0145f2c35ea58e715a.tar.gz
linux-3.10-468e5aaffb17f4c35ade8c0145f2c35ea58e715a.tar.bz2
linux-3.10-468e5aaffb17f4c35ade8c0145f2c35ea58e715a.zip
upstream: 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>
Diffstat (limited to 'include/linux/sh_eth.h')
-rw-r--r--include/linux/sh_eth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sh_eth.h b/include/linux/sh_eth.h
index fc305713fc6..6205eeba392 100644
--- a/include/linux/sh_eth.h
+++ b/include/linux/sh_eth.h
@@ -2,6 +2,7 @@
#define __ASM_SH_ETH_H__
#include <linux/phy.h>
+#include <linux/if_ether.h>
enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN};
enum {
@@ -18,7 +19,7 @@ struct sh_eth_plat_data {
phy_interface_t phy_interface;
void (*set_mdio_gate)(void *addr);
- unsigned char mac_addr[6];
+ unsigned char mac_addr[ETH_ALEN];
unsigned no_ether_link:1;
unsigned ether_link_active_low:1;
unsigned needs_init:1;