diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-02-19 17:29:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-21 15:39:59 -0500 |
commit | 17c9ac62812b58aacefc7336215aecbb522f6547 (patch) | |
tree | 3eca6290a695716678d7ff12f9a3093b566c5c93 /drivers/net/wireless/rtlwifi/wifi.h | |
parent | 663dcc73675bd70ee11195ce832b1d1691f967d0 (diff) |
rtlwifi: rtl8192ce: Fix endian warnings
Drivers rtlwifi, and rtl8192ce generate a large number of
sparse warnings. This patch fixes most of them.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/wifi.h')
-rw-r--r-- | drivers/net/wireless/rtlwifi/wifi.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rtlwifi/wifi.h b/drivers/net/wireless/rtlwifi/wifi.h index c0f8140e8874..053943967a1c 100644 --- a/drivers/net/wireless/rtlwifi/wifi.h +++ b/drivers/net/wireless/rtlwifi/wifi.h | |||
@@ -1427,7 +1427,7 @@ struct rtl_hal_usbint_cfg { | |||
1427 | 1427 | ||
1428 | /* endpoint mapping */ | 1428 | /* endpoint mapping */ |
1429 | int (*usb_endpoint_mapping)(struct ieee80211_hw *hw); | 1429 | int (*usb_endpoint_mapping)(struct ieee80211_hw *hw); |
1430 | u16 (*usb_mq_to_hwq)(u16 fc, u16 mac80211_queue_index); | 1430 | u16 (*usb_mq_to_hwq)(__le16 fc, u16 mac80211_queue_index); |
1431 | }; | 1431 | }; |
1432 | 1432 | ||
1433 | struct rtl_hal_cfg { | 1433 | struct rtl_hal_cfg { |
@@ -1646,7 +1646,7 @@ struct bt_coexist_info { | |||
1646 | #define READEF2BYTE(_ptr) \ | 1646 | #define READEF2BYTE(_ptr) \ |
1647 | EF2BYTE(*((u16 *)(_ptr))) | 1647 | EF2BYTE(*((u16 *)(_ptr))) |
1648 | #define READEF4BYTE(_ptr) \ | 1648 | #define READEF4BYTE(_ptr) \ |
1649 | EF4BYTE(*((u32 *)(_ptr))) | 1649 | EF4BYTE(*((__le32 *)(_ptr))) |
1650 | 1650 | ||
1651 | /* Write data to memory */ | 1651 | /* Write data to memory */ |
1652 | #define WRITEEF1BYTE(_ptr, _val) \ | 1652 | #define WRITEEF1BYTE(_ptr, _val) \ |
@@ -1759,10 +1759,10 @@ Set subfield of little-endian 4-byte value to specified value. */ | |||
1759 | #define packet_get_type(_packet) (EF1BYTE((_packet).octet[0]) & 0xFC) | 1759 | #define packet_get_type(_packet) (EF1BYTE((_packet).octet[0]) & 0xFC) |
1760 | #define RTL_WATCH_DOG_TIME 2000 | 1760 | #define RTL_WATCH_DOG_TIME 2000 |
1761 | #define MSECS(t) msecs_to_jiffies(t) | 1761 | #define MSECS(t) msecs_to_jiffies(t) |
1762 | #define WLAN_FC_GET_VERS(fc) ((fc) & IEEE80211_FCTL_VERS) | 1762 | #define WLAN_FC_GET_VERS(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_VERS) |
1763 | #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) | 1763 | #define WLAN_FC_GET_TYPE(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) |
1764 | #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) | 1764 | #define WLAN_FC_GET_STYPE(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) |
1765 | #define WLAN_FC_MORE_DATA(fc) ((fc) & IEEE80211_FCTL_MOREDATA) | 1765 | #define WLAN_FC_MORE_DATA(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_MOREDATA) |
1766 | #define SEQ_TO_SN(seq) (((seq) & IEEE80211_SCTL_SEQ) >> 4) | 1766 | #define SEQ_TO_SN(seq) (((seq) & IEEE80211_SCTL_SEQ) >> 4) |
1767 | #define SN_TO_SEQ(ssn) (((ssn) << 4) & IEEE80211_SCTL_SEQ) | 1767 | #define SN_TO_SEQ(ssn) (((ssn) << 4) & IEEE80211_SCTL_SEQ) |
1768 | #define MAX_SN ((IEEE80211_SCTL_SEQ) >> 4) | 1768 | #define MAX_SN ((IEEE80211_SCTL_SEQ) >> 4) |