Skip to content

Commit db07a1c

Browse files
Marco Cesatigregkh
authored andcommitted
Staging: rtl8723bs: fix spaces in odm_DIG.c
This commit fixes the following checkpatch.pl errors: ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#14: FILE: ./hal/odm_DIG.c:14: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#30: FILE: ./hal/odm_DIG.c:30: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#41: FILE: ./hal/odm_DIG.c:41: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#51: FILE: ./hal/odm_DIG.c:51: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#59: FILE: ./hal/odm_DIG.c:59: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#72: FILE: ./hal/odm_DIG.c:72: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#136: FILE: ./hal/odm_DIG.c:136: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#208: FILE: ./hal/odm_DIG.c:208: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#236: FILE: ./hal/odm_DIG.c:236: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#325: FILE: ./hal/odm_DIG.c:325: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#326: FILE: ./hal/odm_DIG.c:326: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#365: FILE: ./hal/odm_DIG.c:365: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#366: FILE: ./hal/odm_DIG.c:366: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#438: FILE: ./hal/odm_DIG.c:438: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#469: FILE: ./hal/odm_DIG.c:469: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#470: FILE: ./hal/odm_DIG.c:470: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#507: FILE: ./hal/odm_DIG.c:507: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#510: FILE: ./hal/odm_DIG.c:510: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#826: FILE: ./hal/odm_DIG.c:826: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#895: FILE: ./hal/odm_DIG.c:895: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#896: FILE: ./hal/odm_DIG.c:896: + struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1065: FILE: ./hal/odm_DIG.c:1065: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1081: FILE: ./hal/odm_DIG.c:1081: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1082: FILE: ./hal/odm_DIG.c:1082: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1083: FILE: ./hal/odm_DIG.c:1083: + struct false_ALARM_STATISTICS * pFalseAlmCnt = &(pDM_Odm->FalseAlmCnt); ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1137: FILE: ./hal/odm_DIG.c:1137: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1138: FILE: ./hal/odm_DIG.c:1138: + struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt); ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1198: FILE: ./hal/odm_DIG.c:1198: + struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID; ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar" torvalds#1199: FILE: ./hal/odm_DIG.c:1199: + struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable; Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Marco Cesati <marcocesati@gmail.com> Link: https://lore.kernel.org/r/20210315170618.2566-24-marcocesati@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d61a481 commit db07a1c

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

drivers/staging/rtl8723bs/hal/odm_DIG.c

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
void odm_NHMCounterStatisticsInit(void *pDM_VOID)
1313
{
14-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
14+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1515

1616
/* PHY parameters initialize for n series */
1717
rtw_write16(pDM_Odm->Adapter, ODM_REG_NHM_TIMER_11N+2, 0x2710); /* 0x894[31:16]= 0x2710 Time duration for NHM unit: 4us, 0x2710 =40ms */
@@ -27,7 +27,7 @@ void odm_NHMCounterStatisticsInit(void *pDM_VOID)
2727

2828
void odm_NHMCounterStatistics(void *pDM_VOID)
2929
{
30-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
30+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
3131

3232
/* Get NHM report */
3333
odm_GetNHMCounterStatistics(pDM_Odm);
@@ -38,7 +38,7 @@ void odm_NHMCounterStatistics(void *pDM_VOID)
3838

3939
void odm_GetNHMCounterStatistics(void *pDM_VOID)
4040
{
41-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
41+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
4242
u32 value32 = 0;
4343

4444
value32 = PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG_NHM_CNT_11N, bMaskDWord);
@@ -48,15 +48,15 @@ void odm_GetNHMCounterStatistics(void *pDM_VOID)
4848

4949
void odm_NHMCounterStatisticsReset(void *pDM_VOID)
5050
{
51-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
51+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
5252

5353
PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N, BIT1, 0);
5454
PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N, BIT1, 1);
5555
}
5656

5757
void odm_NHMBBInit(void *pDM_VOID)
5858
{
59-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
59+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
6060

6161
pDM_Odm->adaptivity_flag = 0;
6262
pDM_Odm->tolerance_cnt = 3;
@@ -69,9 +69,9 @@ void odm_NHMBBInit(void *pDM_VOID)
6969
/* */
7070
void odm_NHMBB(void *pDM_VOID)
7171
{
72-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
72+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
7373
/* u8 test_status; */
74-
/* struct false_ALARM_STATISTICS *pFalseAlmCnt = &(pDM_Odm->FalseAlmCnt); */
74+
/* struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; */
7575

7676
pDM_Odm->NHMCurTxOkcnt =
7777
*(pDM_Odm->pNumTxBytesUnicast)-pDM_Odm->NHMLastTxOkcnt;
@@ -133,7 +133,7 @@ void odm_NHMBB(void *pDM_VOID)
133133

134134
void odm_SearchPwdBLowerBound(void *pDM_VOID, u8 IGI_target)
135135
{
136-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
136+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
137137
u32 value32 = 0;
138138
u8 cnt, IGI;
139139
bool bAdjust = true;
@@ -205,7 +205,7 @@ void odm_SearchPwdBLowerBound(void *pDM_VOID, u8 IGI_target)
205205

206206
void odm_AdaptivityInit(void *pDM_VOID)
207207
{
208-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
208+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
209209

210210
if (pDM_Odm->Carrier_Sense_enable == false)
211211
pDM_Odm->TH_L2H_ini = 0xf7; /* -7 */
@@ -233,7 +233,7 @@ void odm_AdaptivityInit(void *pDM_VOID)
233233

234234
void odm_Adaptivity(void *pDM_VOID, u8 IGI)
235235
{
236-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
236+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
237237
s8 TH_L2H_dmc, TH_H2L_dmc;
238238
s8 Diff, IGI_target;
239239
bool EDCCA_State = false;
@@ -322,8 +322,8 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI)
322322

323323
void ODM_Write_DIG(void *pDM_VOID, u8 CurrentIGI)
324324
{
325-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
326-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
325+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
326+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
327327

328328
if (pDM_DigTable->bStopDIG) {
329329
ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("Stop Writing IGI\n"));
@@ -362,8 +362,8 @@ void odm_PauseDIG(
362362
u8 IGIValue
363363
)
364364
{
365-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
366-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
365+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
366+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
367367
static bool bPaused;
368368

369369
ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_PauseDIG() =========>\n"));
@@ -435,7 +435,7 @@ void odm_PauseDIG(
435435

436436
bool odm_DigAbort(void *pDM_VOID)
437437
{
438-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
438+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
439439

440440
/* SupportAbility */
441441
if (!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT)) {
@@ -466,8 +466,8 @@ bool odm_DigAbort(void *pDM_VOID)
466466

467467
void odm_DIGInit(void *pDM_VOID)
468468
{
469-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
470-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
469+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
470+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
471471

472472
pDM_DigTable->bStopDIG = false;
473473
pDM_DigTable->bPSDInProgress = false;
@@ -504,10 +504,10 @@ void odm_DIGInit(void *pDM_VOID)
504504

505505
void odm_DIG(void *pDM_VOID)
506506
{
507-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
507+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
508508

509509
/* Common parameters */
510-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
510+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
511511
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
512512
bool FirstConnect, FirstDisConnect;
513513
u8 DIG_MaxOfMin, DIG_Dynamic_MIN;
@@ -823,7 +823,7 @@ void odm_DIG(void *pDM_VOID)
823823

824824
void odm_DIGbyRSSI_LPS(void *pDM_VOID)
825825
{
826-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
826+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
827827
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
828828

829829
u8 RSSI_Lower = DM_DIG_MIN_NIC; /* 0x1E or 0x1C */
@@ -892,8 +892,8 @@ void odm_DIGbyRSSI_LPS(void *pDM_VOID)
892892

893893
void odm_FalseAlarmCounterStatistics(void *pDM_VOID)
894894
{
895-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
896-
struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
895+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
896+
struct false_ALARM_STATISTICS *FalseAlmCnt = &pDM_Odm->FalseAlmCnt;
897897
u32 ret_value;
898898

899899
if (!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT))
@@ -1062,7 +1062,7 @@ void odm_FAThresholdCheck(
10621062
u32 *dm_FA_thres
10631063
)
10641064
{
1065-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1065+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
10661066

10671067
if (pDM_Odm->bLinked && (bPerformance || bDFSBand)) {
10681068
/* For NIC */
@@ -1078,9 +1078,9 @@ void odm_FAThresholdCheck(
10781078

10791079
u8 odm_ForbiddenIGICheck(void *pDM_VOID, u8 DIG_Dynamic_MIN, u8 CurrentIGI)
10801080
{
1081-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1082-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
1083-
struct false_ALARM_STATISTICS * pFalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
1081+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1082+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
1083+
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
10841084
u8 rx_gain_range_min = pDM_DigTable->rx_gain_range_min;
10851085

10861086
if (pFalseAlmCnt->Cnt_all > 10000) {
@@ -1134,8 +1134,8 @@ u8 odm_ForbiddenIGICheck(void *pDM_VOID, u8 DIG_Dynamic_MIN, u8 CurrentIGI)
11341134

11351135
void odm_CCKPacketDetectionThresh(void *pDM_VOID)
11361136
{
1137-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1138-
struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
1137+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1138+
struct false_ALARM_STATISTICS *FalseAlmCnt = &pDM_Odm->FalseAlmCnt;
11391139
u8 CurCCK_CCAThres;
11401140

11411141

@@ -1195,8 +1195,8 @@ void odm_CCKPacketDetectionThresh(void *pDM_VOID)
11951195

11961196
void ODM_Write_CCK_CCA_Thres(void *pDM_VOID, u8 CurCCK_CCAThres)
11971197
{
1198-
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1199-
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
1198+
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
1199+
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
12001200

12011201
/* modify by Guo.Mingzhi 2012-01-03 */
12021202
if (pDM_DigTable->CurCCK_CCAThres != CurCCK_CCAThres)

0 commit comments

Comments
 (0)