staging: rtl8192e: Convert typedef Stats to struct rt_stats
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 05:21:31 +0000 (00:21 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:52:01 +0000 (01:52 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.h

index e8e6d601479c7a7770094ee7322d199cc531d078..578c3c807e6af0370772680c29538a21557bb722 100644 (file)
@@ -1354,7 +1354,7 @@ short rtl8192_init(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
 
-       memset(&(priv->stats),0,sizeof(struct Stats));
+       memset(&(priv->stats),0,sizeof(struct rt_stats));
 
        rtl8192_dbgp_flag_init(dev);
 
index 803cfe870ece6ee1aecd2e7341a0aa7da9a5e23c..1271e3dea938b140da2de13a700d9c6d1581ed3c 100644 (file)
@@ -376,8 +376,7 @@ struct rt_smooth_data_4rf {
        u32     TotalVal[4];
 };//, *struct rt_smooth_data_4rf *;
 
-typedef struct Stats
-{
+struct rt_stats {
        unsigned long txrdu;
        unsigned long rxrdu;
        unsigned long rxok;
@@ -470,7 +469,7 @@ typedef struct Stats
        u32 Slide_Beacon_Total;
        struct rt_smooth_data_4rf cck_adc_pwdb;
        u32     CurrentShowTxate;
-} Stats;
+};
 
 struct channel_access_setting {
        u16 SIFS_Timer;
@@ -632,7 +631,7 @@ typedef struct r8192_priv
        struct semaphore                        rf_sem;
        struct mutex                            mutex;
 
-       struct Stats                            stats;
+       struct rt_stats stats;
        struct iw_statistics                    wstats;
        struct proc_dir_entry           *dir_dev;