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>, <Chris.Park@atmel.com>,
	<adham.abozaeid@atmel.com>, <Nicolas.FERRE@atmel.com>
Subject: [PATCH RESEND 22/70] staging: wilc1000: renames u8IfIdx of wilc_vif structure
Date: Thu, 4 Feb 2016 18:15:39 +0900	[thread overview]
Message-ID: <1454577387-509-23-git-send-email-glen.lee@atmel.com> (raw)
In-Reply-To: <1454577387-509-1-git-send-email-glen.lee@atmel.com>

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

This patch renames u8IfIdx variable of wilc_vif structure to idx
to avoid camelcase.

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

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 6f583a4..2022deb 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -281,7 +281,7 @@ static int host_int_get_ipaddress(struct wilc_vif *vif, u8 *ip_addr, u8 idx);
  */
 int wilc_get_vif_idx(struct wilc_vif *vif)
 {
-	return vif->u8IfIdx + 1;
+	return vif->idx + 1;
 }
 
 /* We need to minus 1 from idx which is from wilc device to get real index
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 5c87105..9ca33536 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -107,7 +107,7 @@ static int dev_state_ev_handler(struct notifier_block *this,
 		netdev_dbg(dev, "IP add=%d:%d:%d:%d\n",
 			   ip_addr_buf[0], ip_addr_buf[1],
 			   ip_addr_buf[2], ip_addr_buf[3]);
-		wilc_setup_ipaddress(vif, ip_addr_buf, vif->u8IfIdx);
+		wilc_setup_ipaddress(vif, ip_addr_buf, vif->idx);
 
 		break;
 
@@ -129,7 +129,7 @@ static int dev_state_ev_handler(struct notifier_block *this,
 			   ip_addr_buf[0], ip_addr_buf[1],
 			   ip_addr_buf[2], ip_addr_buf[3]);
 
-		wilc_setup_ipaddress(vif, ip_addr_buf, vif->u8IfIdx);
+		wilc_setup_ipaddress(vif, ip_addr_buf, vif->idx);
 
 		break;
 
@@ -1104,7 +1104,7 @@ int wilc_mac_xmit(struct sk_buff *skb, struct net_device *ndev)
 
 	vif->netstats.tx_packets++;
 	vif->netstats.tx_bytes += tx_data->size;
-	tx_data->bssid = wilc->vif[vif->u8IfIdx]->bssid;
+	tx_data->bssid = wilc->vif[vif->idx]->bssid;
 	queue_count = wilc_wlan_txq_add_net_pkt(ndev, (void *)tx_data,
 						tx_data->buff, tx_data->size,
 						linux_wlan_tx_complete);
@@ -1360,7 +1360,7 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type,
 		else
 			strcpy(ndev->name, "p2p%d");
 
-		vif->u8IfIdx = wl->vif_num;
+		vif->idx = wl->vif_num;
 		vif->wilc = *wilc;
 		wl->vif[i] = vif;
 		wl->vif[wl->vif_num]->ndev = ndev;
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index d1cb0b2..a9181d3 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -2197,7 +2197,7 @@ static int start_ap(struct wiphy *wiphy, struct net_device *dev,
 	if (s32Error != 0)
 		PRINT_ER("Error in setting channel\n");
 
-	wilc_wlan_set_bssid(dev, wl->vif[vif->u8IfIdx]->src_addr, AP_MODE);
+	wilc_wlan_set_bssid(dev, wl->vif[vif->idx]->src_addr, AP_MODE);
 	wilc_set_power_mgmt(vif, 0, 0);
 
 	s32Error = wilc_add_beacon(vif, settings->beacon_interval,
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
index 64fcb77..07a4ff1 100644
--- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h
+++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
@@ -148,7 +148,7 @@ typedef struct {
 } struct_frame_reg;
 
 struct wilc_vif {
-	u8 u8IfIdx;
+	u8 idx;
 	u8 iftype;
 	int monitor_flag;
 	int mac_opened;
-- 
1.9.1


  parent reply	other threads:[~2016-02-04  9:25 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04  9:15 [PATCH RESEND 00/70] staging: wilc1000: rebase and resend Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 01/70] staging: wilc1000: wilc_set_wfi_drv_handler: add mac index Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 02/70] staging: wilc1000: remove unused functions Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 03/70] staging: wilc1000: ignore power save Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 04/70] staging: wilc1000: handle connecting error Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 05/70] staging: wilc1000: tcp_process: fix a build warning Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 06/70] staging: wilc1000: remove define TCP_ACK_FILTER Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 07/70] staging: wilc1000: increase link speed Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 08/70] staging: wilc1000: disable power save when AP mode Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 09/70] staging: wilc1000: fix bug on p2p connection Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 10/70] staging: wilc1000: add ops tx power in cfg80211 Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 11/70] staging: wilc1000: fix WEP security bug Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 12/70] staging: wilc1000: get mac address after setting drv handler Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 13/70] staging: wilc1000: move wilc_send_config_pkt to wilc_wlan.c Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 14/70] staging: wilc1000: pass vif to wilc_send_config_pkt Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 15/70] staging: wilc1000: rename hWILCWFIDrv of wilc_priv structure Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 16/70] staging: wilc1000: fixes missing a blank line after declarations Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 17/70] staging: wilc1000: rename pBssid of tx_complete_data structure Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 18/70] staging: wilc1000: remove warnings line over 80 characters Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 19/70] staging: wilc1000: removes unnecessary debug logs Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 21/70] staging: wilc1000: removes void function return Glen Lee
2016-02-04  9:15 ` Glen Lee [this message]
2016-02-04  9:15 ` [PATCH RESEND 23/70] staging: wilc1000: fixes variable dereferenced before check Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 24/70] staging: wilc1000: wilc_parse_network_info(): renames function variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 25/70] staging: wilc1000: wilc_parse_network_info(): renames local variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 26/70] staging: wilc1000: wilc_parse_network_info(): renames local inner variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 27/70] staging: wilc1000: rename variable s32Error Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 28/70] staging: wilc1000: wilc_parse_assoc_resp_info(): renames function variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 29/70] staging: wilc1000: wilc_parse_assoc_resp_info(): renames local variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 30/70] staging: wilc1000: wilc_dealloc_assoc_resp_info(): renames function variables Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 31/70] staging: wilc1000: wilc_dealloc_network_info(): " Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 32/70] staging: wilc1000: fix warnings for line over 80 characters Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 33/70] staging: wilc1000: remove useless log message Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 34/70] staging: wilc1000: remove useless function Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 35/70] staging: wilc1000: remove unnecessary braces Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 36/70] staging: wilc1000: remove warnings missing a blank line after declarations Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 37/70] staging: wilc1000: Optimize code of wilc_get_chipid function Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 38/70] staging: wilc1000: wilc_wfi_cfgoperations.c: replaces PRINT_ER with netdev_err Glen Lee
2016-02-04  9:15 ` [PATCH RESEND 39/70] staging: wilc1000: wilc_msgqueue.c: removes debug print log 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=1454577387-509-23-git-send-email-glen.lee@atmel.com \
    --to=glen.lee@atmel.com \
    --cc=Chris.Park@atmel.com \
    --cc=Nicolas.FERRE@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.