Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers: staging: rtl8723au: Fix "'foo * bar' should be 'foo *bar'" errors

Fix checkpatch.pl "'foo * bar' should be 'foo *bar'" errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Greg Donald and committed by
Greg Kroah-Hartman
3cd87c12 6b284c83

+102 -89
+95 -82
drivers/staging/rtl8723au/include/rtl8723a_bt-coexist.h
··· 31 31 32 32 void BT_SignalCompensation(struct rtw_adapter *padapter, 33 33 u8 *rssi_wifi, u8 *rssi_bt); 34 - void BT_HaltProcess(struct rtw_adapter * padapter); 35 - void BT_LpsLeave(struct rtw_adapter * padapter); 34 + void BT_HaltProcess(struct rtw_adapter *padapter); 35 + void BT_LpsLeave(struct rtw_adapter *padapter); 36 36 37 37 38 38 #define BT_HsConnectionEstablished(Adapter) false ··· 1092 1092 BTHCI_StateMachine(_Adapter, _StateToEnter, _StateCmd, _EntryNum);\ 1093 1093 } 1094 1094 1095 - void BTHCI_EventParse(struct rtw_adapter * padapter, void *pEvntData, u32 dataLen); 1095 + void BTHCI_EventParse(struct rtw_adapter *padapter, void *pEvntData, 1096 + u32 dataLen); 1096 1097 #define BT_EventParse BTHCI_EventParse 1097 - u8 BTHCI_HsConnectionEstablished(struct rtw_adapter * padapter); 1098 - void BTHCI_UpdateBTProfileRTKToMoto(struct rtw_adapter * padapter); 1099 - void BTHCI_WifiScanNotify(struct rtw_adapter * padapter, u8 scanType); 1100 - void BTHCI_StateMachine(struct rtw_adapter * padapter, u8 StateToEnter, enum hci_state_with_cmd StateCmd, u8 EntryNum); 1101 - void BTHCI_DisconnectPeer(struct rtw_adapter * padapter, u8 EntryNum); 1102 - void BTHCI_EventNumOfCompletedDataBlocks(struct rtw_adapter * padapter); 1103 - void BTHCI_EventAMPStatusChange(struct rtw_adapter * padapter, u8 AMP_Status); 1104 - void BTHCI_DisconnectAll(struct rtw_adapter * padapter); 1105 - enum hci_status BTHCI_HandleHCICMD(struct rtw_adapter * padapter, struct packet_irp_hcicmd_data *pHciCmd); 1098 + u8 BTHCI_HsConnectionEstablished(struct rtw_adapter *padapter); 1099 + void BTHCI_UpdateBTProfileRTKToMoto(struct rtw_adapter *padapter); 1100 + void BTHCI_WifiScanNotify(struct rtw_adapter *padapter, u8 scanType); 1101 + void BTHCI_StateMachine(struct rtw_adapter *padapter, u8 StateToEnter, 1102 + enum hci_state_with_cmd StateCmd, u8 EntryNum); 1103 + void BTHCI_DisconnectPeer(struct rtw_adapter *padapter, u8 EntryNum); 1104 + void BTHCI_EventNumOfCompletedDataBlocks(struct rtw_adapter *padapter); 1105 + void BTHCI_EventAMPStatusChange(struct rtw_adapter *padapter, u8 AMP_Status); 1106 + void BTHCI_DisconnectAll(struct rtw_adapter *padapter); 1107 + enum hci_status BTHCI_HandleHCICMD(struct rtw_adapter *padapter, 1108 + struct packet_irp_hcicmd_data *pHciCmd); 1106 1109 1107 1110 /* ===== End of sync from SD7 driver COMMON/bt_hci.h ===== */ 1108 1111 ··· 1160 1157 u8 bRAChanged; 1161 1158 }; 1162 1159 1163 - void BTDM_1AntSignalCompensation(struct rtw_adapter * padapter, u8 *rssi_wifi, u8 *rssi_bt); 1164 - void BTDM_1AntForDhcp(struct rtw_adapter * padapter); 1165 - void BTDM_1AntBtCoexist8723A(struct rtw_adapter * padapter); 1160 + void BTDM_1AntSignalCompensation(struct rtw_adapter *padapter, 1161 + u8 *rssi_wifi, u8 *rssi_bt); 1162 + void BTDM_1AntForDhcp(struct rtw_adapter *padapter); 1163 + void BTDM_1AntBtCoexist8723A(struct rtw_adapter *padapter); 1166 1164 1167 1165 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.h ===== */ 1168 1166 ··· 1245 1241 u8 btStatus; 1246 1242 }; 1247 1243 1248 - void BTDM_2AntBtCoexist8723A(struct rtw_adapter * padapter); 1244 + void BTDM_2AntBtCoexist8723A(struct rtw_adapter *padapter); 1249 1245 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.h ===== */ 1250 1246 1251 1247 /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */ ··· 1314 1310 struct btdm_8723a_1ant btdm1Ant; 1315 1311 }; 1316 1312 1317 - void BTDM_SetFwChnlInfo(struct rtw_adapter * padapter, enum rt_media_status mstatus); 1318 - u8 BTDM_IsWifiConnectionExist(struct rtw_adapter * padapter); 1319 - void BTDM_SetFw3a(struct rtw_adapter * padapter, u8 byte1, u8 byte2, u8 byte3, u8 byte4, u8 byte5); 1320 - void BTDM_QueryBtInformation(struct rtw_adapter * padapter); 1321 - void BTDM_SetSwRfRxLpfCorner(struct rtw_adapter * padapter, u8 type); 1322 - void BTDM_SetSwPenaltyTxRateAdaptive(struct rtw_adapter * padapter, u8 raType); 1323 - void BTDM_SetFwDecBtPwr(struct rtw_adapter * padapter, u8 bDecBtPwr); 1324 - u8 BTDM_BtProfileSupport(struct rtw_adapter * padapter); 1325 - void BTDM_LpsLeave(struct rtw_adapter * padapter); 1313 + void BTDM_SetFwChnlInfo(struct rtw_adapter *padapter, 1314 + enum rt_media_status mstatus); 1315 + u8 BTDM_IsWifiConnectionExist(struct rtw_adapter *padapter); 1316 + void BTDM_SetFw3a(struct rtw_adapter *padapter, u8 byte1, u8 byte2, u8 byte3, 1317 + u8 byte4, u8 byte5); 1318 + void BTDM_QueryBtInformation(struct rtw_adapter *padapter); 1319 + void BTDM_SetSwRfRxLpfCorner(struct rtw_adapter *padapter, u8 type); 1320 + void BTDM_SetSwPenaltyTxRateAdaptive(struct rtw_adapter *padapter, u8 raType); 1321 + void BTDM_SetFwDecBtPwr(struct rtw_adapter *padapter, u8 bDecBtPwr); 1322 + u8 BTDM_BtProfileSupport(struct rtw_adapter *padapter); 1323 + void BTDM_LpsLeave(struct rtw_adapter *padapter); 1326 1324 1327 1325 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */ 1328 1326 ··· 1346 1340 #define BTDM_ANT_BT 2 1347 1341 1348 1342 1349 - void BTDM_SingleAnt(struct rtw_adapter * padapter, u8 bSingleAntOn, u8 bInterruptOn, u8 bMultiNAVOn); 1350 - void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter * padapter); 1343 + void BTDM_SingleAnt(struct rtw_adapter *padapter, u8 bSingleAntOn, 1344 + u8 bInterruptOn, u8 bMultiNAVOn); 1345 + void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter *padapter); 1351 1346 1352 1347 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.h ===== */ 1353 1348 ··· 1368 1361 #define BT_DACSWING_M7 2 1369 1362 #define BT_DACSWING_M10 3 1370 1363 1371 - void BTDM_DiminishWiFi(struct rtw_adapter * Adapter, u8 bDACOn, u8 bInterruptOn, u8 DACSwingLevel, u8 bNAVOn); 1364 + void BTDM_DiminishWiFi(struct rtw_adapter *Adapter, u8 bDACOn, u8 bInterruptOn, 1365 + u8 DACSwingLevel, u8 bNAVOn); 1372 1366 1373 1367 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.h ===== */ 1374 1368 ··· 1542 1534 u8 fw3aVal[5]; 1543 1535 }; 1544 1536 1545 - void BTDM_CheckAntSelMode(struct rtw_adapter * padapter); 1546 - void BTDM_FwC2hBtRssi(struct rtw_adapter * padapter, u8 *tmpBuf); 1537 + void BTDM_CheckAntSelMode(struct rtw_adapter *padapter); 1538 + void BTDM_FwC2hBtRssi(struct rtw_adapter *padapter, u8 *tmpBuf); 1547 1539 #define BT_FwC2hBtRssi BTDM_FwC2hBtRssi 1548 - void BTDM_DisplayBtCoexInfo(struct rtw_adapter * padapter); 1540 + void BTDM_DisplayBtCoexInfo(struct rtw_adapter *padapter); 1549 1541 #define BT_DisplayBtCoexInfo BTDM_DisplayBtCoexInfo 1550 - void BTDM_RejectAPAggregatedPacket(struct rtw_adapter * padapter, u8 bReject); 1551 - u8 BTDM_IsHT40(struct rtw_adapter * padapter); 1552 - u8 BTDM_Legacy(struct rtw_adapter * padapter); 1553 - void BTDM_CheckWiFiState(struct rtw_adapter * padapter); 1554 - s32 BTDM_GetRxSS(struct rtw_adapter * padapter); 1555 - u8 BTDM_CheckCoexBcnRssiState(struct rtw_adapter * padapter, u8 levelNum, u8 RssiThresh, u8 RssiThresh1); 1556 - u8 BTDM_CheckCoexRSSIState1(struct rtw_adapter * padapter, u8 levelNum, u8 RssiThresh, u8 RssiThresh1); 1557 - u8 BTDM_CheckCoexRSSIState(struct rtw_adapter * padapter, u8 levelNum, u8 RssiThresh, u8 RssiThresh1); 1558 - void BTDM_Balance(struct rtw_adapter * padapter, u8 bBalanceOn, u8 ms0, u8 ms1); 1559 - void BTDM_AGCTable(struct rtw_adapter * padapter, u8 type); 1560 - void BTDM_BBBackOffLevel(struct rtw_adapter * padapter, u8 type); 1561 - void BTDM_FWCoexAllOff(struct rtw_adapter * padapter); 1562 - void BTDM_SWCoexAllOff(struct rtw_adapter * padapter); 1563 - void BTDM_HWCoexAllOff(struct rtw_adapter * padapter); 1564 - void BTDM_CoexAllOff(struct rtw_adapter * padapter); 1565 - void BTDM_TurnOffBtCoexistBeforeEnterIPS(struct rtw_adapter * padapter); 1566 - void BTDM_SignalCompensation(struct rtw_adapter * padapter, u8 *rssi_wifi, u8 *rssi_bt); 1567 - void BTDM_UpdateCoexState(struct rtw_adapter * padapter); 1568 - u8 BTDM_IsSameCoexistState(struct rtw_adapter * padapter); 1569 - void BTDM_PWDBMonitor(struct rtw_adapter * padapter); 1570 - u8 BTDM_IsBTBusy(struct rtw_adapter * padapter); 1542 + void BTDM_RejectAPAggregatedPacket(struct rtw_adapter *padapter, u8 bReject); 1543 + u8 BTDM_IsHT40(struct rtw_adapter *padapter); 1544 + u8 BTDM_Legacy(struct rtw_adapter *padapter); 1545 + void BTDM_CheckWiFiState(struct rtw_adapter *padapter); 1546 + s32 BTDM_GetRxSS(struct rtw_adapter *padapter); 1547 + u8 BTDM_CheckCoexBcnRssiState(struct rtw_adapter *padapter, u8 levelNum, 1548 + u8 RssiThresh, u8 RssiThresh1); 1549 + u8 BTDM_CheckCoexRSSIState1(struct rtw_adapter *padapter, u8 levelNum, 1550 + u8 RssiThresh, u8 RssiThresh1); 1551 + u8 BTDM_CheckCoexRSSIState(struct rtw_adapter *padapter, u8 levelNum, 1552 + u8 RssiThresh, u8 RssiThresh1); 1553 + void BTDM_Balance(struct rtw_adapter *padapter, u8 bBalanceOn, u8 ms0, u8 ms1); 1554 + void BTDM_AGCTable(struct rtw_adapter *padapter, u8 type); 1555 + void BTDM_BBBackOffLevel(struct rtw_adapter *padapter, u8 type); 1556 + void BTDM_FWCoexAllOff(struct rtw_adapter *padapter); 1557 + void BTDM_SWCoexAllOff(struct rtw_adapter *padapter); 1558 + void BTDM_HWCoexAllOff(struct rtw_adapter *padapter); 1559 + void BTDM_CoexAllOff(struct rtw_adapter *padapter); 1560 + void BTDM_TurnOffBtCoexistBeforeEnterIPS(struct rtw_adapter *padapter); 1561 + void BTDM_SignalCompensation(struct rtw_adapter *padapter, u8 *rssi_wifi, 1562 + u8 *rssi_bt); 1563 + void BTDM_UpdateCoexState(struct rtw_adapter *padapter); 1564 + u8 BTDM_IsSameCoexistState(struct rtw_adapter *padapter); 1565 + void BTDM_PWDBMonitor(struct rtw_adapter *padapter); 1566 + u8 BTDM_IsBTBusy(struct rtw_adapter *padapter); 1571 1567 #define BT_IsBtBusy BTDM_IsBTBusy 1572 - u8 BTDM_IsWifiBusy(struct rtw_adapter * padapter); 1573 - u8 BTDM_IsCoexistStateChanged(struct rtw_adapter * padapter); 1574 - u8 BTDM_IsWifiUplink(struct rtw_adapter * padapter); 1575 - u8 BTDM_IsWifiDownlink(struct rtw_adapter * padapter); 1576 - u8 BTDM_IsBTHSMode(struct rtw_adapter * padapter); 1577 - u8 BTDM_IsBTUplink(struct rtw_adapter * padapter); 1578 - u8 BTDM_IsBTDownlink(struct rtw_adapter * padapter); 1579 - void BTDM_AdjustForBtOperation(struct rtw_adapter * padapter); 1580 - void BTDM_ForHalt(struct rtw_adapter * padapter); 1581 - void BTDM_WifiScanNotify(struct rtw_adapter * padapter, u8 scanType); 1582 - void BTDM_WifiAssociateNotify(struct rtw_adapter * padapter, u8 action); 1583 - void BTDM_MediaStatusNotify(struct rtw_adapter * padapter, enum rt_media_status mstatus); 1584 - void BTDM_ForDhcp(struct rtw_adapter * padapter); 1585 - void BTDM_ResetActionProfileState(struct rtw_adapter * padapter); 1586 - void BTDM_SetBtCoexCurrAntNum(struct rtw_adapter * padapter, u8 antNum); 1568 + u8 BTDM_IsWifiBusy(struct rtw_adapter *padapter); 1569 + u8 BTDM_IsCoexistStateChanged(struct rtw_adapter *padapter); 1570 + u8 BTDM_IsWifiUplink(struct rtw_adapter *padapter); 1571 + u8 BTDM_IsWifiDownlink(struct rtw_adapter *padapter); 1572 + u8 BTDM_IsBTHSMode(struct rtw_adapter *padapter); 1573 + u8 BTDM_IsBTUplink(struct rtw_adapter *padapter); 1574 + u8 BTDM_IsBTDownlink(struct rtw_adapter *padapter); 1575 + void BTDM_AdjustForBtOperation(struct rtw_adapter *padapter); 1576 + void BTDM_ForHalt(struct rtw_adapter *padapter); 1577 + void BTDM_WifiScanNotify(struct rtw_adapter *padapter, u8 scanType); 1578 + void BTDM_WifiAssociateNotify(struct rtw_adapter *padapter, u8 action); 1579 + void BTDM_MediaStatusNotify(struct rtw_adapter *padapter, 1580 + enum rt_media_status mstatus); 1581 + void BTDM_ForDhcp(struct rtw_adapter *padapter); 1582 + void BTDM_ResetActionProfileState(struct rtw_adapter *padapter); 1583 + void BTDM_SetBtCoexCurrAntNum(struct rtw_adapter *padapter, u8 antNum); 1587 1584 #define BT_SetBtCoexCurrAntNum BTDM_SetBtCoexCurrAntNum 1588 - u8 BTDM_IsActionSCO(struct rtw_adapter * padapter); 1589 - u8 BTDM_IsActionHID(struct rtw_adapter * padapter); 1590 - u8 BTDM_IsActionA2DP(struct rtw_adapter * padapter); 1591 - u8 BTDM_IsActionPAN(struct rtw_adapter * padapter); 1592 - u8 BTDM_IsActionHIDA2DP(struct rtw_adapter * padapter); 1593 - u8 BTDM_IsActionHIDPAN(struct rtw_adapter * padapter); 1594 - u8 BTDM_IsActionPANA2DP(struct rtw_adapter * padapter); 1595 - u32 BTDM_BtTxRxCounterH(struct rtw_adapter * padapter); 1596 - u32 BTDM_BtTxRxCounterL(struct rtw_adapter * padapter); 1585 + u8 BTDM_IsActionSCO(struct rtw_adapter *padapter); 1586 + u8 BTDM_IsActionHID(struct rtw_adapter *padapter); 1587 + u8 BTDM_IsActionA2DP(struct rtw_adapter *padapter); 1588 + u8 BTDM_IsActionPAN(struct rtw_adapter *padapter); 1589 + u8 BTDM_IsActionHIDA2DP(struct rtw_adapter *padapter); 1590 + u8 BTDM_IsActionHIDPAN(struct rtw_adapter *padapter); 1591 + u8 BTDM_IsActionPANA2DP(struct rtw_adapter *padapter); 1592 + u32 BTDM_BtTxRxCounterH(struct rtw_adapter *padapter); 1593 + u32 BTDM_BtTxRxCounterL(struct rtw_adapter *padapter); 1597 1594 1598 1595 /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtCoexist.h ===== */ 1599 1596 ··· 1606 1593 1607 1594 #define RTS_CTS_NO_LEN_LIMIT 0 1608 1595 1609 - u8 HALBT_GetPGAntNum(struct rtw_adapter * padapter); 1596 + u8 HALBT_GetPGAntNum(struct rtw_adapter *padapter); 1610 1597 #define BT_GetPGAntNum HALBT_GetPGAntNum 1611 - void HALBT_SetKey(struct rtw_adapter * padapter, u8 EntryNum); 1612 - void HALBT_RemoveKey(struct rtw_adapter * padapter, u8 EntryNum); 1613 - u8 HALBT_IsBTExist(struct rtw_adapter * padapter); 1598 + void HALBT_SetKey(struct rtw_adapter *padapter, u8 EntryNum); 1599 + void HALBT_RemoveKey(struct rtw_adapter *padapter, u8 EntryNum); 1600 + u8 HALBT_IsBTExist(struct rtw_adapter *padapter); 1614 1601 #define BT_IsBtExist HALBT_IsBTExist 1615 - u8 HALBT_BTChipType(struct rtw_adapter * padapter); 1616 - void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter * padapter); 1602 + u8 HALBT_BTChipType(struct rtw_adapter *padapter); 1603 + void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter *padapter); 1617 1604 1618 1605 /* ===== End of sync from SD7 driver HAL/HalBT.c ===== */ 1619 1606
+2 -2
drivers/staging/rtl8723au/include/rtl8723a_recv.h
··· 56 56 unsigned int MSG_EX; 57 57 }; 58 58 59 - int rtl8723au_init_recv_priv(struct rtw_adapter * padapter); 60 - void rtl8723au_free_recv_priv(struct rtw_adapter * padapter); 59 + int rtl8723au_init_recv_priv(struct rtw_adapter *padapter); 60 + void rtl8723au_free_recv_priv(struct rtw_adapter *padapter); 61 61 void rtl8723a_process_phy_info(struct rtw_adapter *padapter, void *prframe); 62 62 void update_recvframe_attrib(struct recv_frame *precvframe, struct recv_stat *prxstat); 63 63 void update_recvframe_phyinfo(struct recv_frame *precvframe, struct phy_stat *pphy_info);
+4 -4
drivers/staging/rtl8723au/include/rtw_cmd.h
··· 689 689 int rtw_setopmode_cmd23a(struct rtw_adapter *padapter, enum nl80211_iftype ifmode); 690 690 int rtw_setdatarate_cmd(struct rtw_adapter *padapter, u8 *rateset); 691 691 int rtw_setbasicrate_cmd(struct rtw_adapter *padapter, u8 *rateset); 692 - int rtw_setbbreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 val); 693 - int rtw_setrfreg_cmd(struct rtw_adapter * padapter, u8 offset, u32 val); 694 - int rtw_getbbreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 * pval); 695 - int rtw_getrfreg_cmd(struct rtw_adapter * padapter, u8 offset, u8 * pval); 692 + int rtw_setbbreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 val); 693 + int rtw_setrfreg_cmd(struct rtw_adapter *padapter, u8 offset, u32 val); 694 + int rtw_getbbreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 *pval); 695 + int rtw_getrfreg_cmd(struct rtw_adapter *padapter, u8 offset, u8 *pval); 696 696 int rtw_setrfintfs_cmd(struct rtw_adapter *padapter, u8 mode); 697 697 int rtw_setrttbl_cmd(struct rtw_adapter *padapter, struct setratable_parm *prate_table); 698 698 int rtw_getrttbl_cmd(struct rtw_adapter *padapter, struct getratable_rsp *pval);
+1 -1
drivers/staging/rtl8723au/include/rtw_mlme_ext.h
··· 509 509 struct ieee80211_mgmt *mgmt, u32 packet_len); 510 510 void update_IOT_info23a(struct rtw_adapter *padapter); 511 511 void update_capinfo23a(struct rtw_adapter *Adapter, u16 updateCap); 512 - void update_wireless_mode23a(struct rtw_adapter * padapter); 512 + void update_wireless_mode23a(struct rtw_adapter *padapter); 513 513 void update_tx_basic_rate23a(struct rtw_adapter *padapter, u8 modulation); 514 514 void update_bmc_sta_support_rate23a(struct rtw_adapter *padapter, u32 mac_id); 515 515 int update_sta_support_rate23a(struct rtw_adapter *padapter, u8 *pvar_ie,