aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54common.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-02-29 07:56:33 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-04 18:36:36 -0500
commit8c28293f5514f64ba064bac7946aebeda4a663c6 (patch)
tree92a88fa9606aff0e0325b2cc4c328a395866541e /drivers/net/wireless/p54common.h
parentdc63644b0ee3b447e879ef8e124657b40e9ea81c (diff)
p54: fix EEPROM structure endianness
Since the EEPROM structure is read from hardware, it is always little endian, annotate that in the struct and make sure to convert where applicable. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Michael Wu <flamingice@sourmilk.net> Tested-by: Florian Fainelli <florian.fainelli@telecomint.eu> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54common.h')
-rw-r--r--drivers/net/wireless/p54common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/p54common.h b/drivers/net/wireless/p54common.h
index a721334e20d9..b67ff34e26fe 100644
--- a/drivers/net/wireless/p54common.h
+++ b/drivers/net/wireless/p54common.h
@@ -53,10 +53,10 @@ struct pda_entry {
53} __attribute__ ((packed)); 53} __attribute__ ((packed));
54 54
55struct eeprom_pda_wrap { 55struct eeprom_pda_wrap {
56 u32 magic; 56 __le32 magic;
57 u16 pad; 57 __le16 pad;
58 u16 len; 58 __le16 len;
59 u32 arm_opcode; 59 __le32 arm_opcode;
60 u8 data[0]; 60 u8 data[0];
61} __attribute__ ((packed)); 61} __attribute__ ((packed));
62 62