diff options
author | Karolina Drobnik <karolinadrobnik@gmail.com> | 2021-10-22 10:37:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-24 14:30:17 +0200 |
commit | ead759a493cb4895e408ce1c762b043c12e7d606 (patch) | |
tree | d4e2642e7a722ecc0c1da178c396732bea8358dd /drivers/staging/vt6655/rf.c | |
parent | 8628ff7ffe22c214401ba3c5b6745c8bd9a3767c (diff) |
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: <bySleepCount>
Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
Link: https://lore.kernel.org/r/70ee3b7d9797d546bab311840da5f8709397ce08.1634826774.git.karolinadrobnik@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/rf.c')
-rw-r--r-- | drivers/staging/vt6655/rf.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |