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>
} buffer;
/* YJ,modified,080828. */
-typedef struct Stats {
+struct stats {
unsigned long txrdu;
unsigned long rxrdu;
unsigned long rxnolast;
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. */
/* short rate; */
short promisc;
/* stats */
- struct Stats stats;
+ struct stats stats;
struct _link_detect_t link_detect; /* YJ,add,080828 */
struct iw_statistics wstats;
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)