Skip to content

Commit

Permalink
Staging: rtl8723bs: fix spaces in odm_DIG.c
Browse files Browse the repository at this point in the history
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"
    #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"
    #1138: FILE: ./hal/odm_DIG.c:1138:
    +	struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt);

    ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
    #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"
    #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>
  • Loading branch information
Marco Cesati authored and gregkh committed Mar 16, 2021
1 parent d61a481 commit db07a1c
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions drivers/staging/rtl8723bs/hal/odm_DIG.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

void odm_NHMCounterStatisticsInit(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

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

void odm_NHMCounterStatistics(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

/* Get NHM report */
odm_GetNHMCounterStatistics(pDM_Odm);
Expand All @@ -38,7 +38,7 @@ void odm_NHMCounterStatistics(void *pDM_VOID)

void odm_GetNHMCounterStatistics(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
u32 value32 = 0;

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

void odm_NHMCounterStatisticsReset(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N, BIT1, 0);
PHY_SetBBReg(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N, BIT1, 1);
}

void odm_NHMBBInit(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

pDM_Odm->adaptivity_flag = 0;
pDM_Odm->tolerance_cnt = 3;
Expand All @@ -69,9 +69,9 @@ void odm_NHMBBInit(void *pDM_VOID)
/* */
void odm_NHMBB(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
/* u8 test_status; */
/* struct false_ALARM_STATISTICS *pFalseAlmCnt = &(pDM_Odm->FalseAlmCnt); */
/* struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt; */

pDM_Odm->NHMCurTxOkcnt =
*(pDM_Odm->pNumTxBytesUnicast)-pDM_Odm->NHMLastTxOkcnt;
Expand Down Expand Up @@ -133,7 +133,7 @@ void odm_NHMBB(void *pDM_VOID)

void odm_SearchPwdBLowerBound(void *pDM_VOID, u8 IGI_target)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
u32 value32 = 0;
u8 cnt, IGI;
bool bAdjust = true;
Expand Down Expand Up @@ -205,7 +205,7 @@ void odm_SearchPwdBLowerBound(void *pDM_VOID, u8 IGI_target)

void odm_AdaptivityInit(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

if (pDM_Odm->Carrier_Sense_enable == false)
pDM_Odm->TH_L2H_ini = 0xf7; /* -7 */
Expand Down Expand Up @@ -233,7 +233,7 @@ void odm_AdaptivityInit(void *pDM_VOID)

void odm_Adaptivity(void *pDM_VOID, u8 IGI)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
s8 TH_L2H_dmc, TH_H2L_dmc;
s8 Diff, IGI_target;
bool EDCCA_State = false;
Expand Down Expand Up @@ -322,8 +322,8 @@ void odm_Adaptivity(void *pDM_VOID, u8 IGI)

void ODM_Write_DIG(void *pDM_VOID, u8 CurrentIGI)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;

if (pDM_DigTable->bStopDIG) {
ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("Stop Writing IGI\n"));
Expand Down Expand Up @@ -362,8 +362,8 @@ void odm_PauseDIG(
u8 IGIValue
)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
static bool bPaused;

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

bool odm_DigAbort(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

/* SupportAbility */
if (!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT)) {
Expand Down Expand Up @@ -466,8 +466,8 @@ bool odm_DigAbort(void *pDM_VOID)

void odm_DIGInit(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;

pDM_DigTable->bStopDIG = false;
pDM_DigTable->bPSDInProgress = false;
Expand Down Expand Up @@ -504,10 +504,10 @@ void odm_DIGInit(void *pDM_VOID)

void odm_DIG(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

/* Common parameters */
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
bool FirstConnect, FirstDisConnect;
u8 DIG_MaxOfMin, DIG_Dynamic_MIN;
Expand Down Expand Up @@ -823,7 +823,7 @@ void odm_DIG(void *pDM_VOID)

void odm_DIGbyRSSI_LPS(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;

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

void odm_FalseAlarmCounterStatistics(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct false_ALARM_STATISTICS *FalseAlmCnt = &pDM_Odm->FalseAlmCnt;
u32 ret_value;

if (!(pDM_Odm->SupportAbility & ODM_BB_FA_CNT))
Expand Down Expand Up @@ -1062,7 +1062,7 @@ void odm_FAThresholdCheck(
u32 *dm_FA_thres
)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;

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

u8 odm_ForbiddenIGICheck(void *pDM_VOID, u8 DIG_Dynamic_MIN, u8 CurrentIGI)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct false_ALARM_STATISTICS * pFalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;
struct false_ALARM_STATISTICS *pFalseAlmCnt = &pDM_Odm->FalseAlmCnt;
u8 rx_gain_range_min = pDM_DigTable->rx_gain_range_min;

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

void odm_CCKPacketDetectionThresh(void *pDM_VOID)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct false_ALARM_STATISTICS * FalseAlmCnt = &(pDM_Odm->FalseAlmCnt);
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct false_ALARM_STATISTICS *FalseAlmCnt = &pDM_Odm->FalseAlmCnt;
u8 CurCCK_CCAThres;


Expand Down Expand Up @@ -1195,8 +1195,8 @@ void odm_CCKPacketDetectionThresh(void *pDM_VOID)

void ODM_Write_CCK_CCA_Thres(void *pDM_VOID, u8 CurCCK_CCAThres)
{
struct DM_ODM_T * pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T * pDM_DigTable = &pDM_Odm->DM_DigTable;
struct DM_ODM_T *pDM_Odm = (struct DM_ODM_T *)pDM_VOID;
struct DIG_T *pDM_DigTable = &pDM_Odm->DM_DigTable;

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

0 comments on commit db07a1c

Please sign in to comment.