forked from Minki/linux
drivers: staging: rtl8821ae: Fix '"(foo*)" should be "(foo *)"' errors
Fix checkpatch.pl '"(foo*)" should be "(foo *)"' errors Signed-off-by: Greg Donald <gdonald@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
01b1ccd3a5
commit
c1f870c68a
@ -78,33 +78,33 @@ enum ap_peer {
|
||||
SET_BITS_TO_LE_2BYTE(_hdr, 8, 1, _val)
|
||||
|
||||
#define SET_80211_PS_POLL_AID(_hdr, _val) \
|
||||
WRITEEF2BYTE(((u8*)(_hdr))+2, _val)
|
||||
WRITEEF2BYTE(((u8 *)(_hdr))+2, _val)
|
||||
#define SET_80211_PS_POLL_BSSID(_hdr, _val) \
|
||||
CP_MACADDR(((u8*)(_hdr))+4, (u8*)(_val))
|
||||
CP_MACADDR(((u8 *)(_hdr))+4, (u8 *)(_val))
|
||||
#define SET_80211_PS_POLL_TA(_hdr, _val) \
|
||||
CP_MACADDR(((u8*)(_hdr))+10, (u8*)(_val))
|
||||
CP_MACADDR(((u8 *)(_hdr))+10, (u8 *)(_val))
|
||||
|
||||
#define SET_80211_HDR_DURATION(_hdr, _val) \
|
||||
WRITEEF2BYTE((u8*)(_hdr)+FRAME_OFFSET_DURATION, _val)
|
||||
WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_DURATION, _val)
|
||||
#define SET_80211_HDR_ADDRESS1(_hdr, _val) \
|
||||
CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8*)(_val))
|
||||
CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS1, (u8 *)(_val))
|
||||
#define SET_80211_HDR_ADDRESS2(_hdr, _val) \
|
||||
CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8*)(_val))
|
||||
CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS2, (u8 *)(_val))
|
||||
#define SET_80211_HDR_ADDRESS3(_hdr, _val) \
|
||||
CP_MACADDR((u8*)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8*)(_val))
|
||||
CP_MACADDR((u8 *)(_hdr)+FRAME_OFFSET_ADDRESS3, (u8 *)(_val))
|
||||
#define SET_80211_HDR_FRAGMENT_SEQUENCE(_hdr, _val) \
|
||||
WRITEEF2BYTE((u8*)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
|
||||
WRITEEF2BYTE((u8 *)(_hdr)+FRAME_OFFSET_SEQUENCE, _val)
|
||||
|
||||
#define SET_BEACON_PROBE_RSP_TIME_STAMP_LOW(__phdr, __val) \
|
||||
WRITEEF4BYTE(((u8*)(__phdr)) + 24, __val)
|
||||
WRITEEF4BYTE(((u8 *)(__phdr)) + 24, __val)
|
||||
#define SET_BEACON_PROBE_RSP_TIME_STAMP_HIGH(__phdr, __val) \
|
||||
WRITEEF4BYTE(((u8*)(__phdr)) + 28, __val)
|
||||
WRITEEF4BYTE(((u8 *)(__phdr)) + 28, __val)
|
||||
#define SET_BEACON_PROBE_RSP_BEACON_INTERVAL(__phdr, __val) \
|
||||
WRITEEF2BYTE(((u8*)(__phdr)) + 32, __val)
|
||||
WRITEEF2BYTE(((u8 *)(__phdr)) + 32, __val)
|
||||
#define GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr) \
|
||||
READEF2BYTE(((u8*)(__phdr)) + 34)
|
||||
READEF2BYTE(((u8 *)(__phdr)) + 34)
|
||||
#define SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \
|
||||
WRITEEF2BYTE(((u8*)(__phdr)) + 34, __val)
|
||||
WRITEEF2BYTE(((u8 *)(__phdr)) + 34, __val)
|
||||
#define MASK_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, __val) \
|
||||
SET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr, \
|
||||
(GET_BEACON_PROBE_RSP_CAPABILITY_INFO(__phdr) & (~(__val))))
|
||||
|
@ -285,10 +285,10 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf)
|
||||
struct rtl_phy *rtlphy = &(rtlpriv->phy);
|
||||
struct rtl_mac *mac = rtl_mac(rtlpriv);
|
||||
struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
|
||||
bool *bool_tmp = (bool*)out_buf;
|
||||
int *s32_tmp = (int*)out_buf;
|
||||
u32 *u32_tmp = (u32*)out_buf;
|
||||
u8 *u8_tmp = (u8*)out_buf;
|
||||
bool *bool_tmp = (bool *)out_buf;
|
||||
int *s32_tmp = (int *)out_buf;
|
||||
u32 *u32_tmp = (u32 *)out_buf;
|
||||
u8 *u8_tmp = (u8 *)out_buf;
|
||||
bool tmp = false;
|
||||
|
||||
|
||||
|
@ -109,7 +109,7 @@ extern u32 btc_dbg_type[];
|
||||
do { \
|
||||
if(unlikely(btc_dbg_type[dbgtype] & dbgflag)) { \
|
||||
int __i; \
|
||||
u8* __ptr = (u8*)_Ptr; \
|
||||
u8 *__ptr = (u8 *)_Ptr; \
|
||||
printk printstr; \
|
||||
for( __i = 0; __i < 6; __i++ ) \
|
||||
printk("%02X%s", __ptr[__i], (__i==5)?"":"-");\
|
||||
@ -121,7 +121,7 @@ extern u32 btc_dbg_type[];
|
||||
do { \
|
||||
if(unlikely(btc_dbg_type[dbgtype] & dbgflag) ) { \
|
||||
int __i; \
|
||||
u8 *__ptr = (u8*)_hexdata; \
|
||||
u8 *__ptr = (u8 *)_hexdata; \
|
||||
printk(_titlestring); \
|
||||
for( __i = 0; __i < (int)_hexdatalen; __i++ ) { \
|
||||
printk("%02X%s", __ptr[__i], (((__i + 1) % 4) \
|
||||
|
@ -691,7 +691,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
||||
rtlpriv->cfg->ops->linked_set_reg(hw);
|
||||
|
||||
rcu_read_lock();
|
||||
sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
|
||||
sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
|
||||
|
||||
if (vif->type == NL80211_IFTYPE_STATION && sta)
|
||||
rtlpriv->cfg->ops->update_rate_tbl(hw, sta, 0);
|
||||
@ -760,7 +760,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
||||
("BSS_CHANGED_HT\n"));
|
||||
|
||||
rcu_read_lock();
|
||||
sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
|
||||
sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
|
||||
if (sta) {
|
||||
if (sta->ht_cap.ampdu_density >
|
||||
mac->current_ampdu_density)
|
||||
@ -796,7 +796,7 @@ static void rtl_op_bss_info_changed(struct ieee80211_hw *hw,
|
||||
rtlpriv->cfg->ops->set_network_type(hw, vif->type);
|
||||
|
||||
rcu_read_lock();
|
||||
sta = ieee80211_find_sta(vif, (u8*)bss_conf->bssid);
|
||||
sta = ieee80211_find_sta(vif, (u8 *)bss_conf->bssid);
|
||||
if (!sta) {
|
||||
rcu_read_unlock();
|
||||
goto out;
|
||||
|
@ -203,7 +203,7 @@ enum dbgp_flag_e {
|
||||
if(unlikely(((_comp) & rtlpriv->dbg.global_debugcomponents ) &&\
|
||||
(_level <= rtlpriv->dbg.global_debuglevel ))) { \
|
||||
int __i; \
|
||||
u8* ptr = (u8*)_hexdata; \
|
||||
u8 *ptr = (u8 *)_hexdata; \
|
||||
printk(KERN_DEBUG "%s: ", KBUILD_MODNAME); \
|
||||
printk(KERN_DEBUG "In process \"%s\" (pid %i):", \
|
||||
current->comm, \
|
||||
|
@ -897,10 +897,10 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
|
||||
|
||||
/* static bcn for roaming */
|
||||
rtl_beacon_statistic(hw, skb);
|
||||
rtl_p2p_info(hw, (void*)skb->data, skb->len);
|
||||
rtl_p2p_info(hw, (void *)skb->data, skb->len);
|
||||
/* for sw lps */
|
||||
rtl_swlps_beacon(hw, (void*)skb->data, skb->len);
|
||||
rtl_recognize_peer(hw, (void*)skb->data, skb->len);
|
||||
rtl_swlps_beacon(hw, (void *)skb->data, skb->len);
|
||||
rtl_recognize_peer(hw, (void *)skb->data, skb->len);
|
||||
if ((rtlpriv->mac80211.opmode == NL80211_IFTYPE_AP) &&
|
||||
(rtlpriv->rtlhal.current_bandtype == BAND_ON_2_4G)&&
|
||||
(ieee80211_is_beacon(fc) ||
|
||||
|
@ -182,7 +182,7 @@
|
||||
#define GET_C2H_CMD_CONTINUE(__prxhdr) \
|
||||
LE_BITS_TO_4BYTE((__prxhdr), 31, 1)
|
||||
#define GET_C2H_CMD_CONTENT(__prxhdr) \
|
||||
((u8*)(__prxhdr) + C2H_RX_CMD_HDR_LEN)
|
||||
((u8 *)(__prxhdr) + C2H_RX_CMD_HDR_LEN)
|
||||
|
||||
#define GET_C2H_CMD_FEEDBACK_ELEMENT_ID(__pcmdfbhdr) \
|
||||
LE_BITS_TO_4BYTE((__pcmdfbhdr), 0, 8)
|
||||
|
@ -2733,7 +2733,7 @@ void rtl8821ae_dm_dynamic_edcca(struct ieee80211_hw *hw)
|
||||
bool b_fw_current_in_ps_mode = false;
|
||||
|
||||
rtlpriv->cfg->ops->get_hw_reg(hw,HW_VAR_FW_PSMODE_STATUS, \
|
||||
(u8*)(&b_fw_current_in_ps_mode));
|
||||
(u8 *)(&b_fw_current_in_ps_mode));
|
||||
if (b_fw_current_in_ps_mode)
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user