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
@@ -14,6 +14,8 @@
|
||||
#ifndef __DM9000_PLATFORM_DATA
|
||||
#define __DM9000_PLATFORM_DATA __FILE__
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
/* IO control flags */
|
||||
|
||||
#define DM9000_PLATF_8BITONLY (0x0001)
|
||||
@@ -27,7 +29,7 @@
|
||||
|
||||
struct dm9000_plat_data {
|
||||
unsigned int flags;
|
||||
unsigned char dev_addr[6];
|
||||
unsigned char dev_addr[ETH_ALEN];
|
||||
|
||||
/* allow replacement IO routines */
|
||||
|
||||
|
Reference in New Issue
Block a user