All of lore.kernel.org
 help / color / mirror / Atom feed
From: Glen Lee <glen.lee@atmel.com>
To: <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <linux-wireless@vger.kernel.org>,
	<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 53/80] staging: wilc1000: rename u8LinkSpeed of struct rf_info
Date: Wed, 28 Oct 2015 16:06:58 +0900	[thread overview]
Message-ID: <1446016045-32154-3-git-send-email-glen.lee@atmel.com> (raw)
In-Reply-To: <1446016045-32154-1-git-send-email-glen.lee@atmel.com>

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

This patch renames u8LinkSpeed of struct rf_info to link_speed
to avoid CamelCase naming convention.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
---
 drivers/staging/wilc1000/host_interface.c         | 2 +-
 drivers/staging/wilc1000/host_interface.h         | 2 +-
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 7 ++++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 357f68d..a835016 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -2139,7 +2139,7 @@ s32 Handle_GetStatistics(struct host_if_drv *hif_drv, struct rf_info *pstrStatis
 	strWIDList[u32WidsCount].id = WID_LINKSPEED;
 	strWIDList[u32WidsCount].type = WID_CHAR;
 	strWIDList[u32WidsCount].size = sizeof(char);
-	strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->u8LinkSpeed;
+	strWIDList[u32WidsCount].val = (s8 *)&pstrStatistics->link_speed;
 	u32WidsCount++;
 
 	strWIDList[u32WidsCount].id = WID_RSSI;
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 9de0267..941b8d9 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -53,7 +53,7 @@
 #define NUM_CONCURRENT_IFC			2
 
 struct rf_info {
-	u8 u8LinkSpeed;
+	u8 link_speed;
 	s8 s8RSSI;
 	u32 u32TxCount;
 	u32 u32RxCount;
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index bf7a2a2..2c12887 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -1570,11 +1570,12 @@ static int get_station(struct wiphy *wiphy, struct net_device *dev,
 		sinfo->rx_packets   =  strStatistics.u32RxCount;
 		sinfo->tx_packets   =  strStatistics.u32TxCount + strStatistics.u32TxFailureCount;
 		sinfo->tx_failed	=  strStatistics.u32TxFailureCount;
-		sinfo->txrate.legacy = strStatistics.u8LinkSpeed * 10;
+		sinfo->txrate.legacy = strStatistics.link_speed * 10;
 
-		if ((strStatistics.u8LinkSpeed > TCP_ACK_FILTER_LINK_SPEED_THRESH) && (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED))
+		if ((strStatistics.link_speed > TCP_ACK_FILTER_LINK_SPEED_THRESH) &&
+		    (strStatistics.link_speed != DEFAULT_LINK_SPEED))
 			Enable_TCP_ACK_Filter(true);
-		else if (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED)
+		else if (strStatistics.link_speed != DEFAULT_LINK_SPEED)
 			Enable_TCP_ACK_Filter(false);
 
 		PRINT_D(CORECONFIG_DBG, "*** stats[%d][%d][%d][%d][%d]\n", sinfo->signal, sinfo->rx_packets, sinfo->tx_packets,
-- 
1.9.1


  parent reply	other threads:[~2015-10-28  7:04 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28  7:06 [PATCH 51/80] staging: wilc1000: rename u32UserConnectPvoid of struct user_conn_req Glen Lee
2015-10-28  7:06 ` [PATCH 52/80] staging: wilc1000: host_interface.h: move local define variables Glen Lee
2015-10-28  7:06 ` Glen Lee [this message]
2015-10-28  7:06 ` [PATCH 54/80] staging: wilc1000: rename s8RSSI of struct rf_info Glen Lee
2015-10-28  7:07 ` [PATCH 55/80] staging: wilc1000: rename u32TxCount " Glen Lee
2015-10-28  7:07 ` [PATCH 56/80] staging: wilc1000: rename u32RxCount " Glen Lee
2015-10-28  7:07 ` [PATCH 57/80] staging: wilc1000: rename u32TxFailureCount " Glen Lee
2015-10-28  7:07 ` [PATCH 58/80] staging: wilc1000: rename WPARxGtk of enum KEY_TYPE Glen Lee
2015-10-28  7:07 ` [PATCH 59/80] staging: wilc1000: rename WPAPtk " Glen Lee
2015-10-28  7:07 ` [PATCH 60/80] staging: wilc1000: rename u32RcvdChCount of struct user_scan_req Glen Lee
2015-10-28  7:07 ` [PATCH 61/80] staging: wilc1000: rename tenuAuth_type of struct user_conn_req Glen Lee
2015-10-28  7:07 ` [PATCH 62/80] staging: wilc1000: rename u32ListenSessionID of struct remain_ch Glen Lee
2015-10-28  7:07 ` [PATCH 63/80] staging: wilc1000: rename u64P2p_MgmtTimeout of struct host_if_drv Glen Lee
2015-10-28  7:07 ` [PATCH 64/80] staging: wilc1000: rename u8P2PConnect " Glen Lee
2015-10-28  7:07 ` [PATCH 65/80] staging: wilc1000: rename au8BSSID of struct add_sta_param Glen Lee
2015-10-28  7:07 ` [PATCH 66/80] staging: wilc1000: rename u16AssocID " Glen Lee
2015-10-28  7:07 ` [PATCH 67/80] staging: wilc1000: rename u8NumRates " Glen Lee
2015-10-28  7:07 ` [PATCH 68/80] staging: wilc1000: rename pu8Rates " Glen Lee
2015-10-28  7:07 ` [PATCH 69/80] staging: wilc1000: rename bIsHTSupported " Glen Lee
2015-10-28  7:07 ` [PATCH 70/80] staging: wilc1000: rename u16HTCapInfo " Glen Lee
2015-10-28  7:07 ` [PATCH 71/80] staging: wilc1000: rename u8AmpduParams " Glen Lee
2015-10-28  7:07 ` [PATCH 72/80] staging: wilc1000: rename au8SuppMCsSet " Glen Lee
2015-10-28  7:07 ` [PATCH 73/80] staging: wilc1000: rename u16HTExtParams " Glen Lee
2015-10-28  7:07 ` [PATCH 74/80] staging: wilc1000: rename u32TxBeamformingCap " Glen Lee
2015-10-28  7:07 ` [PATCH 75/80] staging: wilc1000: rename u8ASELCap " Glen Lee
2015-10-28  7:07 ` [PATCH 76/80] staging: wilc1000: rename u16FlagsMask " Glen Lee
2015-10-28  7:07 ` [PATCH 77/80] staging: wilc1000: rename u16FlagsSet " Glen Lee
2015-10-28  7:07 ` [PATCH 78/80] staging: wilc1000: rename pstrHostIFSetChan of fuction Handle_SetChannel Glen Lee
2015-10-28  7:07 ` [PATCH 79/80] staging: wilc1000: rename pstrHostIfSetDrvHandler of fuction Handle_SetWfiDrvHandler Glen Lee
2015-10-28  7:07 ` [PATCH 80/80] staging: wilc1000: rename pstrHostIfSetOperationMode of fuction Handle_SetOperationMode Glen Lee

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=1446016045-32154-3-git-send-email-glen.lee@atmel.com \
    --to=glen.lee@atmel.com \
    --cc=Nicolas.FERRE@atmel.com \
    --cc=adel.noureldin@atmel.com \
    --cc=adham.abozaeid@atmel.com \
    --cc=austin.shin@atmel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=leo.kim@atmel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tony.cho@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.