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/media | |
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/media')
-rw-r--r-- | include/media/tveeprom.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/media/tveeprom.h b/include/media/tveeprom.h index 4a1191abd936..f7119ee3977b 100644 --- a/include/media/tveeprom.h +++ b/include/media/tveeprom.h | |||
@@ -12,6 +12,8 @@ enum tveeprom_audio_processor { | |||
12 | TVEEPROM_AUDPROC_OTHER, | 12 | TVEEPROM_AUDPROC_OTHER, |
13 | }; | 13 | }; |
14 | 14 | ||
15 | #include <linux/if_ether.h> | ||
16 | |||
15 | struct tveeprom { | 17 | struct tveeprom { |
16 | u32 has_radio; | 18 | u32 has_radio; |
17 | /* If has_ir == 0, then it is unknown what the IR capabilities are, | 19 | /* If has_ir == 0, then it is unknown what the IR capabilities are, |
@@ -40,7 +42,7 @@ struct tveeprom { | |||
40 | u32 revision; | 42 | u32 revision; |
41 | u32 serial_number; | 43 | u32 serial_number; |
42 | char rev_str[5]; | 44 | char rev_str[5]; |
43 | u8 MAC_address[6]; | 45 | u8 MAC_address[ETH_ALEN]; |
44 | }; | 46 | }; |
45 | 47 | ||
46 | void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, | 48 | void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, |