ath9k_hw: clean up EEPROM endian handling on AR9003
[deliverable/linux.git] / drivers / net / wireless / ath / ath9k / ar9003_eeprom.h
index d8c0318f416f02b916c7de66e1e3010850e538d8..23fb353c3bba502f3eeacf1eaa0fbbea6d19c715 100644 (file)
@@ -169,7 +169,7 @@ enum CompressAlgorithm {
 };
 
 struct ar9300_base_eep_hdr {
-       u16 regDmn[2];
+       __le16 regDmn[2];
        /* 4 bits tx and 4 bits rx */
        u8 txrxMask;
        struct eepFlags opCapFlags;
@@ -199,16 +199,16 @@ struct ar9300_base_eep_hdr {
        u8 rxBandSelectGpio;
        u8 txrxgain;
        /* SW controlled internal regulator fields */
-       u32 swreg;
+       __le32 swreg;
 } __packed;
 
 struct ar9300_modal_eep_header {
        /* 4 idle, t1, t2, b (4 bits per setting) */
-       u32 antCtrlCommon;
+       __le32 antCtrlCommon;
        /* 4 ra1l1, ra2l1, ra1l2, ra2l2, ra12 */
-       u32 antCtrlCommon2;
+       __le32 antCtrlCommon2;
        /* 6 idle, t, r, rx1, rx12, b (2 bits each) */
-       u16 antCtrlChain[AR9300_MAX_CHAINS];
+       __le16 antCtrlChain[AR9300_MAX_CHAINS];
        /* 3 xatten1_db for AR9280 (0xa20c/b20c 5:0) */
        u8 xatten1DB[AR9300_MAX_CHAINS];
        /* 3  xatten1_margin for merlin (0xa20c/b20c 16:12 */
This page took 0.036319 seconds and 5 git commands to generate.