Skip to content

Commit 03e7b9c

Browse files
Leo-Kimgregkh
authored andcommitted
staging: wilc1000: remove typedef from tstrStatistics
This patch removes typedef from the struct tstrStatistics and rename it to rf_info. Signed-off-by: Leo Kim <[email protected]> Signed-off-by: Tony Cho <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4ef4d19 commit 03e7b9c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

drivers/staging/wilc1000/host_interface.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,7 +2974,7 @@ static void Handle_GetLinkspeed(struct host_if_drv *drvHandler)
29742974

29752975
}
29762976

2977-
s32 Handle_GetStatistics(struct host_if_drv *drvHandler, tstrStatistics *pstrStatistics)
2977+
s32 Handle_GetStatistics(struct host_if_drv *drvHandler, struct rf_info *pstrStatistics)
29782978
{
29792979
struct wid strWIDList[5];
29802980
u32 u32WidsCount = 0, s32Error = 0;
@@ -3987,7 +3987,7 @@ static int hostIFthread(void *pvArg)
39873987
break;
39883988

39893989
case HOST_IF_MSG_GET_STATISTICS:
3990-
Handle_GetStatistics(msg.drv, (tstrStatistics *)msg.body.data);
3990+
Handle_GetStatistics(msg.drv, (struct rf_info *)msg.body.data);
39913991
break;
39923992

39933993
case HOST_IF_MSG_GET_CHNL:
@@ -5480,7 +5480,7 @@ s32 host_int_get_link_speed(struct host_if_drv *hWFIDrv, s8 *ps8lnkspd)
54805480
return s32Error;
54815481
}
54825482

5483-
s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, tstrStatistics *pstrStatistics)
5483+
s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, struct rf_info *pstrStatistics)
54845484
{
54855485
s32 s32Error = 0;
54865486
struct host_if_msg msg;

drivers/staging/wilc1000/host_interface.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,13 @@
5757
#define SCAN_EVENT_DONE_ABORTED
5858
#define NUM_CONCURRENT_IFC 2
5959

60-
typedef struct _tstrStatistics {
60+
struct rf_info {
6161
u8 u8LinkSpeed;
6262
s8 s8RSSI;
6363
u32 u32TxCount;
6464
u32 u32RxCount;
6565
u32 u32TxFailureCount;
66-
67-
} tstrStatistics;
66+
};
6867

6968
enum host_if_state {
7069
HOST_IF_IDLE = 0,
@@ -1176,6 +1175,6 @@ static s32 Handle_ScanDone(struct host_if_drv *drvHandler, tenuScanEvent enuEven
11761175

11771176
void host_int_freeJoinParams(void *pJoinParams);
11781177

1179-
s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, tstrStatistics *pstrStatistics);
1178+
s32 host_int_get_statistics(struct host_if_drv *hWFIDrv, struct rf_info *pstrStatistics);
11801179

11811180
#endif

drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
15761576
}
15771577

15781578
if (nic->iftype == STATION_MODE) {
1579-
tstrStatistics strStatistics;
1579+
struct rf_info strStatistics;
15801580

15811581
host_int_get_statistics(priv->hWILCWFIDrv, &strStatistics);
15821582

0 commit comments

Comments
 (0)