mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
e216975ad9
commit
574e2af7c0
11 changed files with 58 additions and 45 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
#include <linux/bitmap.h>
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
#define i1480_FW 0x00000303
|
||||
/* #define i1480_FW 0x00000302 */
|
||||
|
@ -130,7 +131,7 @@ enum { UWB_DRP_BACKOFF_WIN_MAX = 16 };
|
|||
* it is also used to define headers sent down and up the wire/radio).
|
||||
*/
|
||||
struct uwb_mac_addr {
|
||||
u8 data[6];
|
||||
u8 data[ETH_ALEN];
|
||||
} __attribute__((packed));
|
||||
|
||||
|
||||
|
@ -568,7 +569,7 @@ struct uwb_rc_evt_confirm {
|
|||
/* Device Address Management event. [WHCI] section 3.1.3.2. */
|
||||
struct uwb_rc_evt_dev_addr_mgmt {
|
||||
struct uwb_rceb rceb;
|
||||
u8 baAddr[6];
|
||||
u8 baAddr[ETH_ALEN];
|
||||
u8 bResultCode;
|
||||
} __attribute__((packed));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue