From: Larry Finger Date: Tue, 19 Jul 2011 02:06:43 +0000 (-0500) Subject: staging: rtl8192e: Convert typedef FALSE_ALARM_STATISTICS to struct false_alarm_stats X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=38b1f67d9dffd8adebf5558d790c7fc5a5b5dc80;p=mv-sheeva.git staging: rtl8192e: Convert typedef FALSE_ALARM_STATISTICS to struct false_alarm_stats Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger --- diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index 4b69c6ec1b1..f85415ff3f1 100644 --- a/drivers/staging/rtl8192e/rtl819x_HT.h +++ b/drivers/staging/rtl8192e/rtl819x_HT.h @@ -366,7 +366,7 @@ struct mimo_evm { u32 EVM2; };//, *struct mimo_evm *; -typedef struct _FALSE_ALARM_STATISTICS{ +struct false_alarm_stats { u32 Cnt_Parity_Fail; u32 Cnt_Rate_Illegal; u32 Cnt_Crc8_fail; @@ -374,7 +374,7 @@ typedef struct _FALSE_ALARM_STATISTICS{ u32 Cnt_Ofdm_fail; u32 Cnt_Cck_fail; u32 Cnt_all; -}FALSE_ALARM_STATISTICS, *PFALSE_ALARM_STATISTICS; +};//, *struct false_alarm_stats *; extern u8 MCS_FILTER_ALL[16]; diff --git a/drivers/staging/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl_core.h index ffbfb290866..a199cfdc30e 100644 --- a/drivers/staging/rtl8192e/rtl_core.h +++ b/drivers/staging/rtl8192e/rtl_core.h @@ -882,7 +882,7 @@ typedef struct r8192_priv u8 DynamicTxHighPowerLvl; u8 LastDTPLvl; u32 CurrentRATR0; - FALSE_ALARM_STATISTICS FalseAlmCnt; + struct false_alarm_stats FalseAlmCnt; u8 DMFlag; u8 DM_Type; diff --git a/drivers/staging/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl_dm.c index 696e6c260c5..74868b84f04 100644 --- a/drivers/staging/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl_dm.c @@ -1916,7 +1916,7 @@ void dm_FalseAlarmCounterStatistics(struct net_device *dev) { struct r8192_priv *priv = rtllib_priv(dev); u32 ret_value; - PFALSE_ALARM_STATISTICS FalseAlmCnt = &(priv->FalseAlmCnt); + struct false_alarm_stats *FalseAlmCnt = &(priv->FalseAlmCnt); ret_value = rtl8192_QueryBBReg(dev, rOFDM_PHYCounter1, bMaskDWord); FalseAlmCnt->Cnt_Parity_Fail = ((ret_value&0xffff0000)>>16);