Commit eb3bdf59 authored by Tommaso Merciai's avatar Tommaso Merciai Committed by Greg Kroah-Hartman

staging: vt6655: fix camelcase byData in card.c

Replace camelcase variable "byData" into linux kernel coding style
equivalent variable "data" in card.c.
"by" prefix in hungarian notation stands for byte or unsigned char

References:
https://www.kernel.org/doc/html/latest/process/coding-style.html
https://www.cse.iitk.ac.in/users/dsrkg/cs245/html/Guide.htmSigned-off-by: default avatarTommaso Merciai <tomm.merciai@gmail.com>
Link: https://lore.kernel.org/r/20211106184822.24242-1-tomm.merciai@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3f23022
...@@ -183,7 +183,7 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) ...@@ -183,7 +183,7 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)
unsigned char bySlot = 0; unsigned char bySlot = 0;
unsigned char bySIFS = 0; unsigned char bySIFS = 0;
unsigned char byDIFS = 0; unsigned char byDIFS = 0;
unsigned char byData; unsigned char data;
int i; int i;
/* Set SIFS, DIFS, EIFS, SlotTime, CwMin */ /* Set SIFS, DIFS, EIFS, SlotTime, CwMin */
...@@ -194,15 +194,15 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) ...@@ -194,15 +194,15 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)
priv->abyBBVGA[0] = 0x20; priv->abyBBVGA[0] = 0x20;
priv->abyBBVGA[2] = 0x10; priv->abyBBVGA[2] = 0x10;
priv->abyBBVGA[3] = 0x10; priv->abyBBVGA[3] = 0x10;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x1C) if (data == 0x1C)
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
} else if (priv->byRFType == RF_UW2452) { } else if (priv->byRFType == RF_UW2452) {
MACvSetBBType(priv->port_offset, BB_TYPE_11A); MACvSetBBType(priv->port_offset, BB_TYPE_11A);
priv->abyBBVGA[0] = 0x18; priv->abyBBVGA[0] = 0x18;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x14) { if (data == 0x14) {
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
bb_write_embedded(priv, 0xE1, 0x57); bb_write_embedded(priv, 0xE1, 0x57);
} }
...@@ -220,14 +220,14 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) ...@@ -220,14 +220,14 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)
priv->abyBBVGA[0] = 0x1C; priv->abyBBVGA[0] = 0x1C;
priv->abyBBVGA[2] = 0x00; priv->abyBBVGA[2] = 0x00;
priv->abyBBVGA[3] = 0x00; priv->abyBBVGA[3] = 0x00;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x20) if (data == 0x20)
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
} else if (priv->byRFType == RF_UW2452) { } else if (priv->byRFType == RF_UW2452) {
priv->abyBBVGA[0] = 0x14; priv->abyBBVGA[0] = 0x14;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x18) { if (data == 0x18) {
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
bb_write_embedded(priv, 0xE1, 0xD3); bb_write_embedded(priv, 0xE1, 0xD3);
} }
...@@ -243,14 +243,14 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) ...@@ -243,14 +243,14 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type)
priv->abyBBVGA[0] = 0x1C; priv->abyBBVGA[0] = 0x1C;
priv->abyBBVGA[2] = 0x00; priv->abyBBVGA[2] = 0x00;
priv->abyBBVGA[3] = 0x00; priv->abyBBVGA[3] = 0x00;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x20) if (data == 0x20)
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
} else if (priv->byRFType == RF_UW2452) { } else if (priv->byRFType == RF_UW2452) {
priv->abyBBVGA[0] = 0x14; priv->abyBBVGA[0] = 0x14;
bb_read_embedded(priv, 0xE7, &byData); bb_read_embedded(priv, 0xE7, &data);
if (byData == 0x18) { if (data == 0x18) {
bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]);
bb_write_embedded(priv, 0xE1, 0xD3); bb_write_embedded(priv, 0xE1, 0xD3);
} }
...@@ -798,12 +798,12 @@ bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF) ...@@ -798,12 +798,12 @@ bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF)
{ {
void __iomem *iobase = priv->port_offset; void __iomem *iobase = priv->port_offset;
unsigned short ww; unsigned short ww;
unsigned char byData; unsigned char data;
MACvRegBitsOn(iobase, MAC_REG_TFTCTL, TFTCTL_TSFCNTRRD); MACvRegBitsOn(iobase, MAC_REG_TFTCTL, TFTCTL_TSFCNTRRD);
for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
VNSvInPortB(iobase + MAC_REG_TFTCTL, &byData); VNSvInPortB(iobase + MAC_REG_TFTCTL, &data);
if (!(byData & TFTCTL_TSFCNTRRD)) if (!(data & TFTCTL_TSFCNTRRD))
break; break;
} }
if (ww == W_MAX_TIMEOUT) if (ww == W_MAX_TIMEOUT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment