Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef Stats to struct rt_stats
Browse files Browse the repository at this point in the history
Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 49f4e74 commit 2fac6fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
7 changes: 3 additions & 4 deletions drivers/staging/rtl8192e/rtl_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2fac6fc

Please sign in to comment.