Skip to content

Commit eb88265

Browse files
opensource206gregkh
authored andcommitted
staging: vt6655: Type encoding info dropped from variable name "pbyTxRate"
variable name "pbyTxRate" updated like below: a.type encoding info dropped from name b.camelcase name replaced by snakecase Issue found by checkpatch Signed-off-by: Pavan Bobba <opensource206@gmail.com> Link: https://lore.kernel.org/r/409a80898ccbb398c31f222dc29cea4725a0cfb3.1698396278.git.opensource206@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8b46d9f commit eb88265

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

drivers/staging/vt6655/card.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,94 +75,94 @@ static void vt6655_mac_set_bb_type(void __iomem *iobase, u32 mask)
7575
* wRate - Tx Rate
7676
* byPktType - Tx Packet type
7777
* Out:
78-
* pbyTxRate - pointer to RSPINF TxRate field
78+
* tx_rate - pointer to RSPINF TxRate field
7979
* pbyRsvTime - pointer to RSPINF RsvTime field
8080
*
8181
* Return Value: none
8282
*/
8383
static void calculate_ofdmr_parameter(unsigned char rate,
8484
u8 bb_type,
85-
unsigned char *pbyTxRate,
85+
unsigned char *tx_rate,
8686
unsigned char *pbyRsvTime)
8787
{
8888
switch (rate) {
8989
case RATE_6M:
9090
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
91-
*pbyTxRate = 0x9B;
91+
*tx_rate = 0x9B;
9292
*pbyRsvTime = 44;
9393
} else {
94-
*pbyTxRate = 0x8B;
94+
*tx_rate = 0x8B;
9595
*pbyRsvTime = 50;
9696
}
9797
break;
9898

9999
case RATE_9M:
100100
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
101-
*pbyTxRate = 0x9F;
101+
*tx_rate = 0x9F;
102102
*pbyRsvTime = 36;
103103
} else {
104-
*pbyTxRate = 0x8F;
104+
*tx_rate = 0x8F;
105105
*pbyRsvTime = 42;
106106
}
107107
break;
108108

109109
case RATE_12M:
110110
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
111-
*pbyTxRate = 0x9A;
111+
*tx_rate = 0x9A;
112112
*pbyRsvTime = 32;
113113
} else {
114-
*pbyTxRate = 0x8A;
114+
*tx_rate = 0x8A;
115115
*pbyRsvTime = 38;
116116
}
117117
break;
118118

119119
case RATE_18M:
120120
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
121-
*pbyTxRate = 0x9E;
121+
*tx_rate = 0x9E;
122122
*pbyRsvTime = 28;
123123
} else {
124-
*pbyTxRate = 0x8E;
124+
*tx_rate = 0x8E;
125125
*pbyRsvTime = 34;
126126
}
127127
break;
128128

129129
case RATE_36M:
130130
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
131-
*pbyTxRate = 0x9D;
131+
*tx_rate = 0x9D;
132132
*pbyRsvTime = 24;
133133
} else {
134-
*pbyTxRate = 0x8D;
134+
*tx_rate = 0x8D;
135135
*pbyRsvTime = 30;
136136
}
137137
break;
138138

139139
case RATE_48M:
140140
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
141-
*pbyTxRate = 0x98;
141+
*tx_rate = 0x98;
142142
*pbyRsvTime = 24;
143143
} else {
144-
*pbyTxRate = 0x88;
144+
*tx_rate = 0x88;
145145
*pbyRsvTime = 30;
146146
}
147147
break;
148148

149149
case RATE_54M:
150150
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
151-
*pbyTxRate = 0x9C;
151+
*tx_rate = 0x9C;
152152
*pbyRsvTime = 24;
153153
} else {
154-
*pbyTxRate = 0x8C;
154+
*tx_rate = 0x8C;
155155
*pbyRsvTime = 30;
156156
}
157157
break;
158158

159159
case RATE_24M:
160160
default:
161161
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
162-
*pbyTxRate = 0x99;
162+
*tx_rate = 0x99;
163163
*pbyRsvTime = 28;
164164
} else {
165-
*pbyTxRate = 0x89;
165+
*tx_rate = 0x89;
166166
*pbyRsvTime = 34;
167167
}
168168
break;

0 commit comments

Comments
 (0)