diff options
author | Joe Perches <joe@perches.com> | 2013-08-01 19:17:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-02 15:33:54 -0400 |
commit | 574e2af7c0af3273836def5e66f236521bb433c9 (patch) | |
tree | 5cfa1b92c82a86426a906ee9203a1548f0e3d993 /include/linux/dm9000.h | |
parent | e216975ad97cfcfc436789aa66d59a0e93f337f7 (diff) |
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/dm9000.h')
-rw-r--r-- | include/linux/dm9000.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/dm9000.h b/include/linux/dm9000.h index 96e87693d933..841925fbfe8a 100644 --- a/include/linux/dm9000.h +++ b/include/linux/dm9000.h | |||
@@ -14,6 +14,8 @@ | |||
14 | #ifndef __DM9000_PLATFORM_DATA | 14 | #ifndef __DM9000_PLATFORM_DATA |
15 | #define __DM9000_PLATFORM_DATA __FILE__ | 15 | #define __DM9000_PLATFORM_DATA __FILE__ |
16 | 16 | ||
17 | #include <linux/if_ether.h> | ||
18 | |||
17 | /* IO control flags */ | 19 | /* IO control flags */ |
18 | 20 | ||
19 | #define DM9000_PLATF_8BITONLY (0x0001) | 21 | #define DM9000_PLATF_8BITONLY (0x0001) |
@@ -27,7 +29,7 @@ | |||
27 | 29 | ||
28 | struct dm9000_plat_data { | 30 | struct dm9000_plat_data { |
29 | unsigned int flags; | 31 | unsigned int flags; |
30 | unsigned char dev_addr[6]; | 32 | unsigned char dev_addr[ETH_ALEN]; |
31 | 33 | ||
32 | /* allow replacement IO routines */ | 34 | /* allow replacement IO routines */ |
33 | 35 | ||