All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Cho <tony.cho@atmel.com>
To: <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <linux-wireless@vger.kernel.org>,
	<johnny.kim@atmel.com>, <chris.park@atmel.com>,
	<rachel.kim@atmel.com>, <tony.cho@atmel.com>,
	<glen.lee@atmel.com>, <leo.kim@atmel.com>,
	<austin.shin@atmel.com>, <adel.noureldin@atmel.com>,
	<adham.abozaeid@atmel.com>, <Nicolas.FERRE@atmel.com>
Subject: [PATCH V2 24/41] staging: wilc1000: remove typedef from tstrStatistics
Date: Mon, 12 Oct 2015 16:55:58 +0900	[thread overview]
Message-ID: <1444636575-2486-24-git-send-email-tony.cho@atmel.com> (raw)
In-Reply-To: <1444636575-2486-1-git-send-email-tony.cho@atmel.com>

From: Leo Kim <leo.kim@atmel.com>

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>
---
 drivers/staging/wilc1000/host_interface.c         | 6 +++---
 drivers/staging/wilc1000/host_interface.h         | 7 +++----
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +-
 3 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index fdde387..6f4eda6 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -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;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index c3379ec..1097f10 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -57,14 +57,13 @@
 #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
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index a5617de..dd96909 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -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);
 
-- 
1.9.1


  parent reply	other threads:[~2015-10-12  7:59 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-12  7:55 [PATCH V2 01/41] staging: wilc1000: remove typedef from tstrWILC_WFIDrv Tony Cho
2015-10-12  7:55 ` [PATCH V2 02/41] staging: wilc1000: rename the member variable, drvHandler of host_if_msg Tony Cho
2015-10-12  7:55 ` [PATCH V2 03/41] staging: wilc1000: host_interface.c : removes unused local variables Tony Cho
2015-10-12  7:55 ` [PATCH V2 04/41] staging: wilc1000: wilc_wfi_cfgoperations.c " Tony Cho
2015-10-12  7:55 ` [PATCH V2 05/41] staging: wilc1000: remove bool bRespRequired from send_config_pkt Tony Cho
2015-10-12  7:55 ` [PATCH V2 06/41] staging: wilc1000: change parameter names in send_config_pkt Tony Cho
2015-10-12  7:55 ` [PATCH V2 07/41] staging: wilc1000: remove typedef from tstrWID Tony Cho
2015-10-12  7:55 ` [PATCH V2 08/41] staging: wilc1000: remove typedef from tenuWIDtype Tony Cho
2015-10-12  7:55 ` [PATCH V2 09/41] staging: wilc1000: rename the member variable, enuWIDtype of wid Tony Cho
2015-10-12  7:55 ` [PATCH V2 10/41] staging: wilc1000: rename the member variable, u16WIDid " Tony Cho
2015-10-12  7:55 ` [PATCH V2 11/41] staging: wilc1000: rename the member variable, s32ValueSize " Tony Cho
2015-10-12  7:55 ` [PATCH V2 12/41] staging: wilc1000: rename the member variable, ps8WidVal " Tony Cho
2015-10-12  7:55 ` [PATCH V2 13/41] staging: wilc1000: remove unused struct tstrWidJoinReqExt Tony Cho
2015-10-12  7:55 ` [PATCH V2 14/41] staging: wilc1000: remove unused struct tstrBssTable Tony Cho
2015-10-12  7:55 ` [PATCH V2 15/41] staging: wilc1000: remove typedef from tstrJoinBssParam Tony Cho
2015-10-12  7:55 ` [PATCH V2 16/41] staging: wilc1000: remove _tstrJoinParam from join_bss_param Tony Cho
2015-10-12  7:55 ` [PATCH V2 17/41] staging: wilc1000: remove typedef from tstrWILC_UsrScanReq Tony Cho
2015-10-12  7:55 ` [PATCH V2 18/41] staging: wilc1000: remove typedef from tstrWILC_UsrConnReq Tony Cho
2015-10-12  7:55 ` [PATCH V2 19/41] staging: wilc1000: remove typedef from tenuHostIFstate Tony Cho
2015-10-12  7:55 ` [PATCH V2 20/41] staging: wilc1000: remove typedef from tstrFoundNetworkInfo Tony Cho
2015-10-12  7:55 ` [PATCH V2 21/41] staging: wilc1000: remove typedef from tstrHiddenNetworkInfo Tony Cho
2015-10-12  7:55 ` [PATCH V2 22/41] staging: wilc1000: remove unused struct WILC_WFIDrvHandle Tony Cho
2015-10-12  7:55 ` [PATCH V2 23/41] staging: wilc1000: remove unused struct cfg_param_t Tony Cho
2015-10-12  7:55 ` Tony Cho [this message]
2015-10-12  7:55 ` [PATCH V2 25/41] staging: wilc1000: remove typedef from tenuScanEvent Tony Cho
2015-10-12  7:56 ` [PATCH V2 26/41] staging: wilc1000: rename typedef from tenuCfgParam Tony Cho
2015-10-12  7:56 ` [PATCH V2 27/41] staging: wilc1000: remove typedef from tenuConnDisconnEvent Tony Cho
2015-10-12  7:56 ` [PATCH V2 28/41] staging: wilc1000: remove typedef from tenuScanConnTimer Tony Cho
2015-10-12  7:56 ` [PATCH V2 29/41] staging: wilc1000: host_infterface.h: remove unused enum tenuWILC_StaFlag Tony Cho
2015-10-12  7:56 ` [PATCH V2 30/41] staging: wilc1000: remove wilc_wlan.c included in wilc_wfi_cfgoperations.c Tony Cho
2015-10-12  7:56 ` [PATCH V2 31/41] staging: wilc1000: replace drvHandler and hWFIDrv with hif_drv Tony Cho
2015-10-12  7:56 ` [PATCH V2 32/41] staging: wilc1000: rename pstrCfgParamVal in struct cfg_param_attr Tony Cho
2015-10-12  7:56 ` [PATCH V2 33/41] staging: wilc1000: rename u32SetCfgFlag of struct cfg_param_val Tony Cho
2015-10-12  7:56 ` [PATCH V2 34/41] staging: wilc1000: rename strHostIFwepAttr of union host_if_key_attr Tony Cho
2015-10-12  7:56 ` [PATCH V2 35/41] staging: wilc1000: rename strHostIFwpaAttr " Tony Cho
2015-10-12  7:56 ` [PATCH V2 36/41] staging: wilc1000: rename strHostIFpmkidAttr " Tony Cho
2015-10-12  7:56 ` [PATCH V2 37/41] staging: wilc1000: rename pu8WepKey of struct host_if_wep_attr Tony Cho
2015-10-12  7:56 ` [PATCH V2 38/41] staging: wilc1000: rename u8WepKeylen " Tony Cho
2015-10-12  7:56 ` [PATCH V2 39/41] staging: wilc1000: rename u8Wepidx " Tony Cho
2015-10-12  7:56 ` [PATCH V2 40/41] staging: wilc1000: rename u8mode " Tony Cho
2015-10-12  7:56 ` [PATCH V2 41/41] staging: wilc1000: rename tenuAuth_type " Tony Cho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444636575-2486-24-git-send-email-tony.cho@atmel.com \
    --to=tony.cho@atmel.com \
    --cc=Nicolas.FERRE@atmel.com \
    --cc=adel.noureldin@atmel.com \
    --cc=adham.abozaeid@atmel.com \
    --cc=austin.shin@atmel.com \
    --cc=chris.park@atmel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=glen.lee@atmel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=johnny.kim@atmel.com \
    --cc=leo.kim@atmel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=rachel.kim@atmel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.