staging: wilc1000: remove typedef from tstrStatistics
authorLeo Kim <leo.kim@atmel.com>
Mon, 12 Oct 2015 07:55:58 +0000 (16:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:58:01 +0000 (20:58 -0700)
This patch removes typedef from the struct tstrStatistics and
rename it to rf_info.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index fdde38722f3f1efc791cceaf5aa2d700b51738e3..6f4eda6c142552f042ec3ce8fdff028dcd29fb0f 100644 (file)
@@ -2974,7 +2974,7 @@ static void Handle_GetLinkspeed(struct host_if_drv *drvHandler)
 
 }
 
-s32 Handle_GetStatistics(struct host_if_drv *drvHandler, tstrStatistics *pstrStatistics)
+s32 Handle_GetStatistics(struct host_if_drv *drvHandler, struct rf_info *pstrStatistics)
 {
        struct wid strWIDList[5];
        u32 u32WidsCount = 0, s32Error = 0;
@@ -3987,7 +3987,7 @@ static int hostIFthread(void *pvArg)
                        break;
 
                case HOST_IF_MSG_GET_STATISTICS:
-                       Handle_GetStatistics(msg.drv, (tstrStatistics *)msg.body.data);
+                       Handle_GetStatistics(msg.drv, (struct rf_info *)msg.body.data);
                        break;
 
                case HOST_IF_MSG_GET_CHNL:
@@ -5480,7 +5480,7 @@ s32 host_int_get_link_speed(struct host_if_drv *hWFIDrv, s8 *ps8lnkspd)
        return s32Error;
 }
 
-s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, tstrStatistics *pstrStatistics)
+s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, struct rf_info *pstrStatistics)
 {
        s32 s32Error = 0;
        struct host_if_msg msg;
index c3379ecb1b974ab5150870bdaed9ea4eaec9b78b..1097f106bd6e08ccbdd13dbe83c3211909eeb399 100644 (file)
 #define SCAN_EVENT_DONE_ABORTED
 #define NUM_CONCURRENT_IFC                     2
 
-typedef struct _tstrStatistics {
+struct rf_info {
        u8 u8LinkSpeed;
        s8 s8RSSI;
        u32 u32TxCount;
        u32 u32RxCount;
        u32 u32TxFailureCount;
-
-} tstrStatistics;
+};
 
 enum host_if_state {
        HOST_IF_IDLE                    = 0,
@@ -1176,6 +1175,6 @@ static s32 Handle_ScanDone(struct host_if_drv *drvHandler, tenuScanEvent enuEven
 
 void host_int_freeJoinParams(void *pJoinParams);
 
-s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, tstrStatistics *pstrStatistics);
+s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, struct rf_info *pstrStatistics);
 
 #endif
index a5617de4c3b75a0d71f31fd61cc445e063c0d2f7..dd96909c38702eba7a86a77b83a732c7c3b130a1 100644 (file)
@@ -1576,7 +1576,7 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
        }
 
        if (nic->iftype == STATION_MODE) {
-               tstrStatistics strStatistics;
+               struct rf_info strStatistics;
 
                host_int_get_statistics(priv->hWILCWFIDrv, &strStatistics);