Staging: rtl8723bs: fix spaces in HalBtc8723b1Ant.c
authorDesmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Tue, 18 May 2021 04:41:14 +0000 (00:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 15:50:55 +0000 (17:50 +0200)
This commit fixes the following checkpatch.pl errors:

WARNING: please, no space before tabs
+^I/* ^IRx Aggregation related setting */$

WARNING: please, no space before tabs
+^Iu8 ^IH2C_Parameter[1] = {0};$

WARNING: please, no space before tabs
+^Iu8 ^IH2C_Parameter[6] = {0};$

WARNING: please, no space before tabs
+^I/* u32 ^I^IfwVer = 0; */$

WARNING: please, no space before tabs
+/* ^ISoftware Coex Mechanism start */$

WARNING: please, no space before tabs
+/* ^INon-Software Coex Mechanism start */$

WARNING: please, no space before tabs
+^I/* ^IBIT0: "0" for no antenna inverse; "1" for antenna inverse */$

WARNING: please, no space before tabs
+^I/* ^IBIT1: "0" for internal switch; "1" for external switch */$

WARNING: please, no space before tabs
+^I/* ^IBIT2: "0" for one antenna; "1" for two antenna */$

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Desmond Cheong Zhi Xi <desmondcheongzx@gmail.com>
Link: https://lore.kernel.org/r/20210518044119.2960494-3-desmondcheongzx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c

index 85bf45cabecd7a50e1882a5d8a9084f4903084c7..49f37aa16cc458ee7ad82f764f73a55dc96f535a 100644 (file)
@@ -231,7 +231,7 @@ static void halbtc8723b1ant_LimitedRx(
        u8 rxAggSize = aggBufSize;
 
        /*  */
-       /*      Rx Aggregation related setting */
+       /*      Rx Aggregation related setting */
        /*  */
        pBtCoexist->fBtcSet(
                pBtCoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, &bRejectRxAgg
@@ -250,7 +250,7 @@ static void halbtc8723b1ant_LimitedRx(
 
 static void halbtc8723b1ant_QueryBtInfo(struct btc_coexist *pBtCoexist)
 {
-       u8      H2C_Parameter[1] = {0};
+       u8 H2C_Parameter[1] = {0};
 
        pCoexSta->bC2hBtInfoReqSent = true;
 
@@ -606,7 +606,7 @@ static void halbtc8723b1ant_SetSwPenaltyTxRateAdaptive(
        struct btc_coexist *pBtCoexist, bool bLowPenaltyRa
 )
 {
-       u8      H2C_Parameter[6] = {0};
+       u8 H2C_Parameter[6] = {0};
 
        H2C_Parameter[0] = 0x6; /*  opCode, 0x6 = Retry_Penalty */
 
@@ -1038,7 +1038,7 @@ static void halbtc8723b1ant_PsTdma(
        u8 rssiAdjustVal = 0;
        u8 psTdmaByte4Val = 0x50, psTdmaByte0Val = 0x51, psTdmaByte3Val =  0x10;
        s8 nWiFiDurationAdjust = 0x0;
-       /* u32          fwVer = 0; */
+       /* u32 fwVer = 0; */
 
        pCoexDm->bCurPsTdmaOn = bTurnOn;
        pCoexDm->curPsTdma = type;
@@ -1575,13 +1575,13 @@ static void halbtc8723b1ant_PowerSaveState(
 
 /*  */
 /*  */
-/*     Software Coex Mechanism start */
+/*     Software Coex Mechanism start */
 /*  */
 /*  */
 
 /*  */
 /*  */
-/*     Non-Software Coex Mechanism start */
+/*     Non-Software Coex Mechanism start */
 /*  */
 /*  */
 static void halbtc8723b1ant_ActionWifiMultiPort(struct btc_coexist *pBtCoexist)
@@ -2166,9 +2166,9 @@ void EXhalbtc8723b1ant_PowerOnSetting(struct btc_coexist *pBtCoexist)
        /*  */
        /*  S0 or S1 setting and Local register setting(By the setting fw can get ant number, S0/S1, ... info) */
        /*  Local setting bit define */
-       /*      BIT0: "0" for no antenna inverse; "1" for antenna inverse */
-       /*      BIT1: "0" for internal switch; "1" for external switch */
-       /*      BIT2: "0" for one antenna; "1" for two antenna */
+       /*      BIT0: "0" for no antenna inverse; "1" for antenna inverse */
+       /*      BIT1: "0" for internal switch; "1" for external switch */
+       /*      BIT2: "0" for one antenna; "1" for two antenna */
        /*  NOTE: here default all internal switch and 1-antenna ==> BIT1 = 0 and BIT2 = 0 */
        if (pBtCoexist->chipInterface == BTC_INTF_USB) {
                /*  fixed at S0 for USB interface */