summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8187se
diff options
context:
space:
mode:
authorAna Rey <anarey@gmail.com>2014-02-26 15:30:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-27 14:49:58 -0800
commitf37e756033c918c198bc2df6dada27df25ce5a6f (patch)
treef991157849faa0053f45dca2966b4a8510f77816 /drivers/staging/rtl8187se
parent02981dac48765708322146d756fbd230164789b2 (diff)
staging: rtl8187se: Convert Stats typedef into a struct
The Documentation/CodingStyle doesn't recommend the use of typedef, convert this to structure. While at it, I have also renamed the variable names that were used in this typedef not to use Hungarian notation. Signed-off-by: Ana Rey <anarey@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8187se')
-rw-r--r--drivers/staging/rtl8187se/r8180.h6
-rw-r--r--drivers/staging/rtl8187se/r8180_core.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/rtl8187se/r8180.h b/drivers/staging/rtl8187se/r8180.h
index 2d9accf4ca66..1fc1c0948b1a 100644
--- a/drivers/staging/rtl8187se/r8180.h
+++ b/drivers/staging/rtl8187se/r8180.h
@@ -174,7 +174,7 @@ typedef struct buffer {
} buffer;
/* YJ,modified,080828. */
-typedef struct Stats {
+struct stats {
unsigned long txrdu;
unsigned long rxrdu;
unsigned long rxnolast;
@@ -207,7 +207,7 @@ typedef struct Stats {
unsigned long rxcrcerrmid; /* crc error (500-1000) */
unsigned long rxcrcerrmax; /* crc error (>1000) */
unsigned long rxicverr; /* ICV error */
-} Stats;
+};
#define MAX_LD_SLOT_NUM 10
#define KEEP_ALIVE_INTERVAL 20 /* in seconds. */
@@ -372,7 +372,7 @@ typedef struct r8180_priv {
/* short rate; */
short promisc;
/* stats */
- struct Stats stats;
+ struct stats stats;
struct _link_detect_t link_detect; /* YJ,add,080828 */
struct iw_statistics wstats;
diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
index dec0dfc88369..1882da86a78e 100644
--- a/drivers/staging/rtl8187se/r8180_core.c
+++ b/drivers/staging/rtl8187se/r8180_core.c
@@ -2256,9 +2256,9 @@ static void rtl8180_set_channel_map(u8 channel_plan,
void GPIOChangeRFWorkItemCallBack(struct work_struct *work);
/* YJ,add,080828 */
-static void rtl8180_statistics_init(struct Stats *pstats)
+static void rtl8180_statistics_init(struct stats *pstats)
{
- memset(pstats, 0, sizeof(struct Stats));
+ memset(pstats, 0, sizeof(struct stats));
}
static void rtl8180_link_detect_init(plink_detect_t plink_detect)