linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ajay Singh <ajay.kathat@microchip.com>
To: Claudiu Beznea - M18063 <Claudiu.Beznea@microchip.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"Ganesh Krishna - C00112" <Ganesh.Krishna@microchip.com>,
	Venkateswara Kaja - I21295 <Venkateswara.Kaja@microchip.com>,
	Aditya Shankar - I16078 <Aditya.Shankar@microchip.com>
Subject: Re: [PATCH 10/14] staging: wilc1000: rename ptstrJoinBssParam variable to avoid camelCase
Date: Mon, 22 Jan 2018 12:59:11 +0530	[thread overview]
Message-ID: <20180122125911.29dcac2a@ajaysk-VirtualBox> (raw)
In-Reply-To: <9a155299-ee4e-f2c7-1a32-26e70881c183@microchip.com>


On Fri, 19 Jan 2018 16:50:18 +0530
Claudiu Beznea - M18063 <Claudiu.Beznea@microchip.com> wrote:

> On 18.01.2018 15:17, Ajay Singh wrote:
> > fix "Avoid camelCase" issue reported by checkpatch.pl script.
> > 
> > Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
> > ---
> >  drivers/staging/wilc1000/host_interface.c | 78 +++++++++++++++----------------
> >  1 file changed, 39 insertions(+), 39 deletions(-)
> > 
> > diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> > index 4ddd1a8..cc27b5a 100644
> > --- a/drivers/staging/wilc1000/host_interface.c
> > +++ b/drivers/staging/wilc1000/host_interface.c
> > @@ -909,7 +909,7 @@ static s32 Handle_Connect(struct wilc_vif *vif,
> >  	struct wid wid_list[8];
> >  	u32 wid_cnt = 0, dummyval = 0;
> >  	u8 *cur_byte = NULL;
> > -	struct join_bss_param *ptstrJoinBssParam;
> > +	struct join_bss_param *j_bss_param;  
> I would choose either join_bss_param or bss_param for the name.
> 
Claudiu, Thanks for the code review comments.
I will change j_bss_param to bss_param as per the comments.

> >  	struct host_if_drv *hif_drv = vif->hif_drv;
> >  
> >  	if (memcmp(attr->bssid, wilc_connected_ssid, ETH_ALEN) == 0) {
> > @@ -918,8 +918,8 @@ static s32 Handle_Connect(struct wilc_vif *vif,
> >  		return result;
> >  	}
> >  
> > -	ptstrJoinBssParam = attr->params;
> > -	if (!ptstrJoinBssParam) {
> > +	j_bss_param = attr->params;
> > +	if (!j_bss_param) {
> >  		netdev_err(vif->ndev, "Required BSSID not found\n");
> >  		result = -ENOENT;
> >  		goto ERRORHANDLER;
> > @@ -1027,8 +1027,8 @@ static s32 Handle_Connect(struct wilc_vif *vif,
> >  		netdev_err(vif->ndev, "Channel out of range\n");
> >  		*(cur_byte++) = 0xFF;
> >  	}
> > -	*(cur_byte++)  = (ptstrJoinBssParam->cap_info) & 0xFF;
> > -	*(cur_byte++)  = ((ptstrJoinBssParam->cap_info) >> 8) & 0xFF;
> > +	*(cur_byte++)  = (j_bss_param->cap_info) & 0xFF;
> > +	*(cur_byte++)  = ((j_bss_param->cap_info) >> 8) & 0xFF;
> >  
> >  	if (attr->bssid)
> >  		memcpy(cur_byte, attr->bssid, 6);
> > @@ -1038,57 +1038,57 @@ static s32 Handle_Connect(struct wilc_vif *vif,
> >  		memcpy(cur_byte, attr->bssid, 6);
> >  	cur_byte += 6;
> >  
> > -	*(cur_byte++)  = (ptstrJoinBssParam->beacon_period) & 0xFF;
> > -	*(cur_byte++)  = ((ptstrJoinBssParam->beacon_period) >> 8) & 0xFF;
> > -	*(cur_byte++)  =  ptstrJoinBssParam->dtim_period;
> > +	*(cur_byte++)  = (j_bss_param->beacon_period) & 0xFF;
> > +	*(cur_byte++)  = ((j_bss_param->beacon_period) >> 8) & 0xFF;
> > +	*(cur_byte++)  =  j_bss_param->dtim_period;
> >  
> > -	memcpy(cur_byte, ptstrJoinBssParam->supp_rates, MAX_RATES_SUPPORTED + 1);
> > +	memcpy(cur_byte, j_bss_param->supp_rates, MAX_RATES_SUPPORTED + 1);
> >  	cur_byte += (MAX_RATES_SUPPORTED + 1);
> >  
> > -	*(cur_byte++)  =  ptstrJoinBssParam->wmm_cap;
> > -	*(cur_byte++)  = ptstrJoinBssParam->uapsd_cap;
> > +	*(cur_byte++)  =  j_bss_param->wmm_cap;
> > +	*(cur_byte++)  = j_bss_param->uapsd_cap;
> >  
> > -	*(cur_byte++)  = ptstrJoinBssParam->ht_capable;
> > -	hif_drv->usr_conn_req.ht_capable = ptstrJoinBssParam->ht_capable;
> > +	*(cur_byte++)  = j_bss_param->ht_capable;
> > +	hif_drv->usr_conn_req.ht_capable = j_bss_param->ht_capable;
> >  
> > -	*(cur_byte++)  =  ptstrJoinBssParam->rsn_found;
> > -	*(cur_byte++)  =  ptstrJoinBssParam->rsn_grp_policy;
> > -	*(cur_byte++) =  ptstrJoinBssParam->mode_802_11i;
> > +	*(cur_byte++)  =  j_bss_param->rsn_found;
> > +	*(cur_byte++)  =  j_bss_param->rsn_grp_policy;
> > +	*(cur_byte++) =  j_bss_param->mode_802_11i;
> >  
> > -	memcpy(cur_byte, ptstrJoinBssParam->rsn_pcip_policy, sizeof(ptstrJoinBssParam->rsn_pcip_policy));
> > -	cur_byte += sizeof(ptstrJoinBssParam->rsn_pcip_policy);
> > +	memcpy(cur_byte, j_bss_param->rsn_pcip_policy, sizeof(j_bss_param->rsn_pcip_policy));> +	cur_byte += sizeof(j_bss_param->rsn_pcip_policy);
> >  
> > -	memcpy(cur_byte, ptstrJoinBssParam->rsn_auth_policy, sizeof(ptstrJoinBssParam->rsn_auth_policy));
> > -	cur_byte += sizeof(ptstrJoinBssParam->rsn_auth_policy);
> > +	memcpy(cur_byte, j_bss_param->rsn_auth_policy, sizeof(j_bss_param->rsn_auth_policy));
> > +	cur_byte += sizeof(j_bss_param->rsn_auth_policy);
> >  
> > -	memcpy(cur_byte, ptstrJoinBssParam->rsn_cap, sizeof(ptstrJoinBssParam->rsn_cap));
> > -	cur_byte += sizeof(ptstrJoinBssParam->rsn_cap);
> > +	memcpy(cur_byte, j_bss_param->rsn_cap, sizeof(j_bss_param->rsn_cap));
> > +	cur_byte += sizeof(j_bss_param->rsn_cap);
> >  
> >  	*(cur_byte++) = REAL_JOIN_REQ;
> > -	*(cur_byte++) = ptstrJoinBssParam->noa_enabled;
> > +	*(cur_byte++) = j_bss_param->noa_enabled;
> >  
> > -	if (ptstrJoinBssParam->noa_enabled) {
> > -		*(cur_byte++) = (ptstrJoinBssParam->tsf) & 0xFF;
> > -		*(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 8) & 0xFF;
> > -		*(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 16) & 0xFF;
> > -		*(cur_byte++) = ((ptstrJoinBssParam->tsf) >> 24) & 0xFF;
> > +	if (j_bss_param->noa_enabled) {
> > +		*(cur_byte++) = (j_bss_param->tsf) & 0xFF;
> > +		*(cur_byte++) = ((j_bss_param->tsf) >> 8) & 0xFF;
> > +		*(cur_byte++) = ((j_bss_param->tsf) >> 16) & 0xFF;
> > +		*(cur_byte++) = ((j_bss_param->tsf) >> 24) & 0xFF;
> >  
> > -		*(cur_byte++) = ptstrJoinBssParam->opp_enabled;
> > -		*(cur_byte++) = ptstrJoinBssParam->idx;
> > +		*(cur_byte++) = j_bss_param->opp_enabled;
> > +		*(cur_byte++) = j_bss_param->idx;
> >  
> > -		if (ptstrJoinBssParam->opp_enabled)
> > -			*(cur_byte++) = ptstrJoinBssParam->ct_window;
> > +		if (j_bss_param->opp_enabled)
> > +			*(cur_byte++) = j_bss_param->ct_window;
> >  
> > -		*(cur_byte++) = ptstrJoinBssParam->cnt;
> > +		*(cur_byte++) = j_bss_param->cnt;
> >  
> > -		memcpy(cur_byte, ptstrJoinBssParam->duration, sizeof(ptstrJoinBssParam->duration));
> > -		cur_byte += sizeof(ptstrJoinBssParam->duration);
> > +		memcpy(cur_byte, j_bss_param->duration, sizeof(j_bss_param->duration));
> > +		cur_byte += sizeof(j_bss_param->duration);
> >  
> > -		memcpy(cur_byte, ptstrJoinBssParam->interval, sizeof(ptstrJoinBssParam->interval));
> > -		cur_byte += sizeof(ptstrJoinBssParam->interval);
> > +		memcpy(cur_byte, j_bss_param->interval, sizeof(j_bss_param->interval));
> > +		cur_byte += sizeof(j_bss_param->interval);
> >  
> > -		memcpy(cur_byte, ptstrJoinBssParam->start_time, sizeof(ptstrJoinBssParam->start_time));
> > -		cur_byte += sizeof(ptstrJoinBssParam->start_time);
> > +		memcpy(cur_byte, j_bss_param->start_time, sizeof(j_bss_param->start_time));
> > +		cur_byte += sizeof(j_bss_param->start_time);
> >  	}
> >  
> >  	cur_byte = wid_list[wid_cnt].val;
> >   

  reply	other threads:[~2018-01-22  7:29 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 13:16 [PATCH 00/14] fix to remove unnecessary parenthesis,typedef and avoid camelCase Ajay Singh
2018-01-18 13:16 ` [PATCH 01/14] staging: wilc1000: remove unnecessary use of parentheses Ajay Singh
2018-01-18 13:17 ` [PATCH 02/14] staging: wilc1000: removed unnecessary defined enums typedef Ajay Singh
2018-01-18 13:17 ` [PATCH 03/14] staging: wilc1000: fix alignments to match open parenthesis Ajay Singh
2018-01-18 13:17 ` [PATCH 04/14] staging: wilc1000: rename host_int_ParseJoinBssParam() and it's variable using camelCase Ajay Singh
2018-01-19 11:20   ` Claudiu Beznea
2018-01-19 12:44     ` Dan Carpenter
2018-01-19 12:56       ` Claudiu Beznea
2018-01-18 13:17 ` [PATCH 05/14] staging: wilc1000: rename camelCase used in Handle_DelAllSta() and its variable Ajay Singh
2018-01-19 11:20   ` Claudiu Beznea
2018-01-18 13:17 ` [PATCH 06/14] staging: wilc1000: rename strWIDList variable to wid_list to avoid camelCase Ajay Singh
2018-01-18 13:17 ` [PATCH 07/14] staging: wilc1000: rename u32WidsCount variable " Ajay Singh
2018-01-18 13:17 ` [PATCH 08/14] staging: wilc1000: rename pu8CurrByte " Ajay Singh
2018-01-18 13:17 ` [PATCH 09/14] staging: wilc1000: rename pstrHostIFconnectAttr argument " Ajay Singh
2018-01-19 11:20   ` Claudiu Beznea
2018-01-22  7:57     ` Ajay Singh
2018-01-18 13:17 ` [PATCH 10/14] staging: wilc1000: rename ptstrJoinBssParam variable " Ajay Singh
2018-01-19 11:20   ` Claudiu Beznea
2018-01-22  7:29     ` Ajay Singh [this message]
2018-01-18 13:17 ` [PATCH 11/14] staging: wilc1000: rename strConnectInfo " Ajay Singh
2018-01-18 13:17 ` [PATCH 12/14] staging: wilc1000: rename Handle_ScanDone() " Ajay Singh
2018-01-18 13:17 ` [PATCH 13/14] staging: wilc1000: rename Handle_Connect() " Ajay Singh
2018-01-18 13:17 ` [PATCH 14/14] staging: wilc1000: rename Handle_ConnectTimeout() and Handle_Key() Ajay Singh
2018-01-19 11:23 ` [PATCH 00/14] fix to remove unnecessary parenthesis,typedef and avoid camelCase Claudiu Beznea

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=20180122125911.29dcac2a@ajaysk-VirtualBox \
    --to=ajay.kathat@microchip.com \
    --cc=Aditya.Shankar@microchip.com \
    --cc=Claudiu.Beznea@microchip.com \
    --cc=Ganesh.Krishna@microchip.com \
    --cc=Venkateswara.Kaja@microchip.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-wireless@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).