All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
@ 2021-11-18 20:27 Alberto Merciai
  2021-11-19  6:38 ` Greg KH
  2021-11-19  8:51 ` Dan Carpenter
  0 siblings, 2 replies; 8+ messages in thread
From: Alberto Merciai @ 2021-11-18 20:27 UTC (permalink / raw)
  To: alb3rt0.m3rciai; +Cc: forest, gregkh, alb3rt0.m3rciai, devel, linux-kernel

Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
Indicator) into linux kernel coding style equivalent
variable "current_rssi".

Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
---

v2
- correct mailing list
v1
- remove whitespaces

 drivers/staging/vt6655/device.h      | 2 +-
 drivers/staging/vt6655/device_main.c | 4 ++--
 drivers/staging/vt6655/dpc.c         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h
index 29f354ced563..80c9ace0d116 100644
--- a/drivers/staging/vt6655/device.h
+++ b/drivers/staging/vt6655/device.h
@@ -167,7 +167,7 @@ struct vnt_private {
 	unsigned char abyCurrentNetAddr[ETH_ALEN]; __aligned(2)
 	bool bLinkPass;          /* link status: OK or fail */
 
-	unsigned int	uCurrRSSI;
+	unsigned int	current_rssi;
 	unsigned char byCurrSQ;
 
 	unsigned long dwTxAntennaSel;
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index 41cbec4134b0..17cdb2dc0aa9 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -979,10 +979,10 @@ static void vnt_check_bb_vga(struct vnt_private *priv)
 	if (priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)
 		return;
 
-	if (!(priv->vif->bss_conf.assoc && priv->uCurrRSSI))
+	if (!(priv->vif->bss_conf.assoc && priv->current_rssi))
 		return;
 
-	RFvRSSITodBm(priv, (u8)priv->uCurrRSSI, &dbm);
+	RFvRSSITodBm(priv, (u8)priv->current_rssi, &dbm);
 
 	for (i = 0; i < BB_VGA_LEVEL; i++) {
 		if (dbm < priv->ldBmThreshold[i]) {
diff --git a/drivers/staging/vt6655/dpc.c b/drivers/staging/vt6655/dpc.c
index 52214a30e9b6..9fea1ee0d612 100644
--- a/drivers/staging/vt6655/dpc.c
+++ b/drivers/staging/vt6655/dpc.c
@@ -82,7 +82,7 @@ static bool vnt_rx_data(struct vnt_private *priv, struct sk_buff *skb,
 	RFvRSSITodBm(priv, *rssi, &rx_dbm);
 
 	priv->byBBPreEDRSSI = (u8)rx_dbm + 1;
-	priv->uCurrRSSI = *rssi;
+	priv->current_rssi = *rssi;
 
 	skb_pull(skb, 4);
 	skb_trim(skb, frame_size);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-18 20:27 [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi Alberto Merciai
@ 2021-11-19  6:38 ` Greg KH
  2021-11-19 13:36   ` Alberto Merciai
  2021-11-19  8:51 ` Dan Carpenter
  1 sibling, 1 reply; 8+ messages in thread
From: Greg KH @ 2021-11-19  6:38 UTC (permalink / raw)
  To: Alberto Merciai; +Cc: devel, forest, linux-kernel

On Thu, Nov 18, 2021 at 09:27:18PM +0100, Alberto Merciai wrote:
> Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
> Indicator) into linux kernel coding style equivalent
> variable "current_rssi".
> 
> Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
> ---
> 
> v2
> - correct mailing list

No, you did not use the correct mailing list.

What is the output of scripts/get_maintainer.pl on your patch?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-18 20:27 [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi Alberto Merciai
  2021-11-19  6:38 ` Greg KH
@ 2021-11-19  8:51 ` Dan Carpenter
  2021-11-19 12:23   ` Alberto Merciai
  1 sibling, 1 reply; 8+ messages in thread
From: Dan Carpenter @ 2021-11-19  8:51 UTC (permalink / raw)
  To: Alberto Merciai; +Cc: devel, gregkh, forest, linux-kernel

On Thu, Nov 18, 2021 at 09:27:18PM +0100, Alberto Merciai wrote:
> Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
> Indicator) into linux kernel coding style equivalent
> variable "current_rssi".
> 
> Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
> ---
> 
> v2
> - correct mailing list

Are you using the staging-next tree?

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-19  8:51 ` Dan Carpenter
@ 2021-11-19 12:23   ` Alberto Merciai
  2021-11-19 12:29     ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Alberto Merciai @ 2021-11-19 12:23 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: devel, gregkh, forest, linux-kernel

I'm using the master branch of 
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/

Alberto

On Fri, Nov 19, 2021 at 11:51:38AM +0300, Dan Carpenter wrote:
> On Thu, Nov 18, 2021 at 09:27:18PM +0100, Alberto Merciai wrote:
> > Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
> > Indicator) into linux kernel coding style equivalent
> > variable "current_rssi".
> > 
> > Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
> > ---
> > 
> > v2
> > - correct mailing list
> 
> Are you using the staging-next tree?
> 
> regards,
> dan carpenter
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-19 12:23   ` Alberto Merciai
@ 2021-11-19 12:29     ` Greg KH
  2021-11-19 18:51       ` Your Name
  0 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2021-11-19 12:29 UTC (permalink / raw)
  To: Alberto Merciai; +Cc: Dan Carpenter, devel, forest, linux-kernel

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

On Fri, Nov 19, 2021 at 01:23:51PM +0100, Alberto Merciai wrote:
> I'm using the master branch of 
> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/

Very odd, why?  That git tree has nothing to do with the staging
development process, and especially not the master branch.

What caused you to pick that one?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-19  6:38 ` Greg KH
@ 2021-11-19 13:36   ` Alberto Merciai
  2021-11-19 14:17     ` Greg KH
  0 siblings, 1 reply; 8+ messages in thread
From: Alberto Merciai @ 2021-11-19 13:36 UTC (permalink / raw)
  To: Greg KH; +Cc: devel, forest, linux-kernel

driver-core$ ./scripts/get_maintainer.pl drivers/staging/vt6655/device.h
Forest Bond <forest@alittletooquiet.net> (odd fixer:STAGING - VIA VT665X DRIVERS)
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (supporter:STAGING SUBSYSTEM)
Alberto Merciai <alb3rt0.m3rciai@gmail.com> (commit_signer:2/2=100%,authored:2/2=100%,added_lines:2/2=100%,removed_lines:2/2=100%)
devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM)
linux-kernel@vger.kernel.org (open list)

Regards,
Alberto

On Fri, Nov 19, 2021 at 07:38:32AM +0100, Greg KH wrote:
> On Thu, Nov 18, 2021 at 09:27:18PM +0100, Alberto Merciai wrote:
> > Replace camelcase variable "uCurrRSSI" (current Received Signal Strength
> > Indicator) into linux kernel coding style equivalent
> > variable "current_rssi".
> > 
> > Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
> > ---
> > 
> > v2
> > - correct mailing list
> 
> No, you did not use the correct mailing list.
> 
> What is the output of scripts/get_maintainer.pl on your patch?
> 
> thanks,
> 
> greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-19 13:36   ` Alberto Merciai
@ 2021-11-19 14:17     ` Greg KH
  0 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2021-11-19 14:17 UTC (permalink / raw)
  To: Alberto Merciai; +Cc: devel, forest, linux-kernel

On Fri, Nov 19, 2021 at 02:36:44PM +0100, Alberto Merciai wrote:
> driver-core$ ./scripts/get_maintainer.pl drivers/staging/vt6655/device.h
> Forest Bond <forest@alittletooquiet.net> (odd fixer:STAGING - VIA VT665X DRIVERS)
> Greg Kroah-Hartman <gregkh@linuxfoundation.org> (supporter:STAGING SUBSYSTEM)
> Alberto Merciai <alb3rt0.m3rciai@gmail.com> (commit_signer:2/2=100%,authored:2/2=100%,added_lines:2/2=100%,removed_lines:2/2=100%)
> devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM)
> linux-kernel@vger.kernel.org (open list)

What kernel version is that?

The driverdev mailing list is very old and should not be used anymore.

Please always work against the latest version of the kernel, and for
development stuff, linux-next is usually best so you do not duplicate
any work that anyone else has done.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi
  2021-11-19 12:29     ` Greg KH
@ 2021-11-19 18:51       ` Your Name
  0 siblings, 0 replies; 8+ messages in thread
From: Your Name @ 2021-11-19 18:51 UTC (permalink / raw)
  To: Greg KH; +Cc: Dan Carpenter, devel, forest, linux-kernel

> What caused you to pick that one?

My mistake :(

I was reading "Submitting patches: the essential guide
to getting your code into the kernel" and I was confuse dby this line
"See the T: entry for the subsystem in the MAINTAINERS file to find 
that tree, or simply ask the maintainer if the tree is not listed
there." supposing that master branch was the correct one.

I'm moving on "staging-next" branch as you suggest.

Regards,

Alberto

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-19 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 20:27 [PATCH v3] staging: vt6655: refactor camelcase uCurrRSSI to current_rssi Alberto Merciai
2021-11-19  6:38 ` Greg KH
2021-11-19 13:36   ` Alberto Merciai
2021-11-19 14:17     ` Greg KH
2021-11-19  8:51 ` Dan Carpenter
2021-11-19 12:23   ` Alberto Merciai
2021-11-19 12:29     ` Greg KH
2021-11-19 18:51       ` Your Name

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.