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>
This commit is contained in:
parent
8628ff7ffe
commit
ead759a493
@ -682,7 +682,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
|
|||||||
void __iomem *iobase = priv->port_offset;
|
void __iomem *iobase = priv->port_offset;
|
||||||
int i;
|
int i;
|
||||||
unsigned char init_count = 0;
|
unsigned char init_count = 0;
|
||||||
unsigned char bySleepCount = 0;
|
unsigned char sleep_count = 0;
|
||||||
|
|
||||||
VNSvOutPortW(iobase + MAC_REG_MISCFFNDEX, 0);
|
VNSvOutPortW(iobase + MAC_REG_MISCFFNDEX, 0);
|
||||||
switch (byRFType) {
|
switch (byRFType) {
|
||||||
@ -694,8 +694,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
|
|||||||
|
|
||||||
/* Init Reg + Channel Reg (2) */
|
/* Init Reg + Channel Reg (2) */
|
||||||
init_count = CB_AL2230_INIT_SEQ + 2;
|
init_count = CB_AL2230_INIT_SEQ + 2;
|
||||||
bySleepCount = 0;
|
sleep_count = 0;
|
||||||
if (init_count > (MISCFIFO_SYNDATASIZE - bySleepCount))
|
if (init_count > (MISCFIFO_SYNDATASIZE - sleep_count))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; i < CB_AL2230_INIT_SEQ; i++)
|
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:
|
case RF_AIROHA7230:
|
||||||
/* Init Reg + Channel Reg (3) */
|
/* Init Reg + Channel Reg (3) */
|
||||||
init_count = CB_AL7230_INIT_SEQ + 3;
|
init_count = CB_AL7230_INIT_SEQ + 3;
|
||||||
bySleepCount = 0;
|
sleep_count = 0;
|
||||||
if (init_count > (MISCFIFO_SYNDATASIZE - bySleepCount))
|
if (init_count > (MISCFIFO_SYNDATASIZE - sleep_count))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (uChannel <= CB_MAX_CHANNEL_24G) {
|
if (uChannel <= CB_MAX_CHANNEL_24G) {
|
||||||
@ -736,7 +736,7 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
|
|||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user