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/smsc911x.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/smsc911x.h')
-rw-r--r-- | include/linux/smsc911x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/smsc911x.h b/include/linux/smsc911x.h index 4dde70e74822..eec3efd19beb 100644 --- a/include/linux/smsc911x.h +++ b/include/linux/smsc911x.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define __LINUX_SMSC911X_H__ | 22 | #define __LINUX_SMSC911X_H__ |
23 | 23 | ||
24 | #include <linux/phy.h> | 24 | #include <linux/phy.h> |
25 | #include <linux/if_ether.h> | ||
25 | 26 | ||
26 | /* platform_device configuration data, should be assigned to | 27 | /* platform_device configuration data, should be assigned to |
27 | * the platform_device's dev.platform_data */ | 28 | * the platform_device's dev.platform_data */ |
@@ -31,7 +32,7 @@ struct smsc911x_platform_config { | |||
31 | unsigned int flags; | 32 | unsigned int flags; |
32 | unsigned int shift; | 33 | unsigned int shift; |
33 | phy_interface_t phy_interface; | 34 | phy_interface_t phy_interface; |
34 | unsigned char mac[6]; | 35 | unsigned char mac[ETH_ALEN]; |
35 | }; | 36 | }; |
36 | 37 | ||
37 | /* Constants for platform_device irq polarity configuration */ | 38 | /* Constants for platform_device irq polarity configuration */ |