Skip to content

Commit cb1fe71

Browse files
opensource206gregkh
authored andcommitted
staging: vt6655: Type encoding info dropped from variable name "pbyRsvTime"
variable name "pbyRsvTime" 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/137b6c433e2d11b6ce99043f1fedf208789e380c.1698396278.git.opensource206@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent eb88265 commit cb1fe71

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
@@ -76,94 +76,94 @@ static void vt6655_mac_set_bb_type(void __iomem *iobase, u32 mask)
7676
* byPktType - Tx Packet type
7777
* Out:
7878
* tx_rate - pointer to RSPINF TxRate field
79-
* pbyRsvTime - pointer to RSPINF RsvTime field
79+
* rsv_time - pointer to RSPINF RsvTime field
8080
*
8181
* Return Value: none
8282
*/
8383
static void calculate_ofdmr_parameter(unsigned char rate,
8484
u8 bb_type,
8585
unsigned char *tx_rate,
86-
unsigned char *pbyRsvTime)
86+
unsigned char *rsv_time)
8787
{
8888
switch (rate) {
8989
case RATE_6M:
9090
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
9191
*tx_rate = 0x9B;
92-
*pbyRsvTime = 44;
92+
*rsv_time = 44;
9393
} else {
9494
*tx_rate = 0x8B;
95-
*pbyRsvTime = 50;
95+
*rsv_time = 50;
9696
}
9797
break;
9898

9999
case RATE_9M:
100100
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
101101
*tx_rate = 0x9F;
102-
*pbyRsvTime = 36;
102+
*rsv_time = 36;
103103
} else {
104104
*tx_rate = 0x8F;
105-
*pbyRsvTime = 42;
105+
*rsv_time = 42;
106106
}
107107
break;
108108

109109
case RATE_12M:
110110
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
111111
*tx_rate = 0x9A;
112-
*pbyRsvTime = 32;
112+
*rsv_time = 32;
113113
} else {
114114
*tx_rate = 0x8A;
115-
*pbyRsvTime = 38;
115+
*rsv_time = 38;
116116
}
117117
break;
118118

119119
case RATE_18M:
120120
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
121121
*tx_rate = 0x9E;
122-
*pbyRsvTime = 28;
122+
*rsv_time = 28;
123123
} else {
124124
*tx_rate = 0x8E;
125-
*pbyRsvTime = 34;
125+
*rsv_time = 34;
126126
}
127127
break;
128128

129129
case RATE_36M:
130130
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
131131
*tx_rate = 0x9D;
132-
*pbyRsvTime = 24;
132+
*rsv_time = 24;
133133
} else {
134134
*tx_rate = 0x8D;
135-
*pbyRsvTime = 30;
135+
*rsv_time = 30;
136136
}
137137
break;
138138

139139
case RATE_48M:
140140
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
141141
*tx_rate = 0x98;
142-
*pbyRsvTime = 24;
142+
*rsv_time = 24;
143143
} else {
144144
*tx_rate = 0x88;
145-
*pbyRsvTime = 30;
145+
*rsv_time = 30;
146146
}
147147
break;
148148

149149
case RATE_54M:
150150
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
151151
*tx_rate = 0x9C;
152-
*pbyRsvTime = 24;
152+
*rsv_time = 24;
153153
} else {
154154
*tx_rate = 0x8C;
155-
*pbyRsvTime = 30;
155+
*rsv_time = 30;
156156
}
157157
break;
158158

159159
case RATE_24M:
160160
default:
161161
if (bb_type == BB_TYPE_11A) { /* 5GHZ */
162162
*tx_rate = 0x99;
163-
*pbyRsvTime = 28;
163+
*rsv_time = 28;
164164
} else {
165165
*tx_rate = 0x89;
166-
*pbyRsvTime = 34;
166+
*rsv_time = 34;
167167
}
168168
break;
169169
}

0 commit comments

Comments
 (0)