From ead759a493cb4895e408ce1c762b043c12e7d606 Mon Sep 17 00:00:00 2001 From: Karolina Drobnik Date: Fri, 22 Oct 2021 10:37:16 +0100 Subject: staging: vt6655: Rename `bySleepCount` variable Drop Hungarian notation in `bySleepCount` variable in `RFvWriteWakeProgSyn` function. Change it to use snake case. Fix issue detected by checkpatch.pl: CHECK: Avoid CamelCase: Signed-off-by: Karolina Drobnik Link: https://lore.kernel.org/r/70ee3b7d9797d546bab311840da5f8709397ce08.1634826774.git.karolinadrobnik@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/vt6655/rf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drivers/staging/vt6655/rf.c') diff --git a/drivers/staging/vt6655/rf.c b/drivers/staging/vt6655/rf.c index 36708af7d612..a30ffacf720a 100644 --- a/drivers/staging/vt6655/rf.c +++ b/drivers/staging/vt6655/rf.c @@ -682,7 +682,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, void __iomem *iobase = priv->port_offset; int i; unsigned char init_count = 0; - unsigned char bySleepCount = 0; + unsigned char sleep_count = 0; VNSvOutPortW(iobase + MAC_REG_MISCFFNDEX, 0); switch (byRFType) { @@ -694,8 +694,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, /* Init Reg + Channel Reg (2) */ init_count = CB_AL2230_INIT_SEQ + 2; - bySleepCount = 0; - if (init_count > (MISCFIFO_SYNDATASIZE - bySleepCount)) + sleep_count = 0; + if (init_count > (MISCFIFO_SYNDATASIZE - sleep_count)) return false; for (i = 0; i < CB_AL2230_INIT_SEQ; i++) @@ -710,8 +710,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, case RF_AIROHA7230: /* Init Reg + Channel Reg (3) */ init_count = CB_AL7230_INIT_SEQ + 3; - bySleepCount = 0; - if (init_count > (MISCFIFO_SYNDATASIZE - bySleepCount)) + sleep_count = 0; + if (init_count > (MISCFIFO_SYNDATASIZE - sleep_count)) return false; if (uChannel <= CB_MAX_CHANNEL_24G) { @@ -736,7 +736,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, return false; } - MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD(bySleepCount, init_count)); + MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD(sleep_count, init_count)); return true; } -- cgit v1.2.3-70-g09d2