Skip to content

Commit 41196b0

Browse files
opensource206gregkh
authored andcommitted
staging: vt6655: Type encoding info dropped from variable name "byRxRate"
variable name "byRxRate" 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/16d6e4f4fbf643b45a9e2e5b4c48c93450543ecc.1698396278.git.opensource206@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3b9325d commit 41196b0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

drivers/staging/vt6655/card.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,16 +278,16 @@ bool card_set_phy_parameter(struct vnt_private *priv, u8 bb_type)
278278
*
279279
* Parameters:
280280
* In:
281-
* priv - The adapter to be sync.
282-
* byRxRate - data rate of receive beacon
281+
* priv - The adapter to be sync.
282+
* rx_rate - data rate of receive beacon
283283
* qwBSSTimestamp - Rx BCN's TSF
284284
* qwLocalTSF - Local TSF
285285
* Out:
286286
* none
287287
*
288288
* Return Value: none
289289
*/
290-
bool card_update_tsf(struct vnt_private *priv, unsigned char byRxRate,
290+
bool card_update_tsf(struct vnt_private *priv, unsigned char rx_rate,
291291
u64 qwBSSTimestamp)
292292
{
293293
u64 local_tsf;
@@ -296,7 +296,7 @@ bool card_update_tsf(struct vnt_private *priv, unsigned char byRxRate,
296296
local_tsf = vt6655_get_current_tsf(priv);
297297

298298
if (qwBSSTimestamp != local_tsf) {
299-
qwTSFOffset = CARDqGetTSFOffset(byRxRate, qwBSSTimestamp,
299+
qwTSFOffset = CARDqGetTSFOffset(rx_rate, qwBSSTimestamp,
300300
local_tsf);
301301
/* adjust TSF, HW's TSF add TSF Offset reg */
302302
qwTSFOffset = le64_to_cpu(qwTSFOffset);
@@ -708,11 +708,11 @@ unsigned char card_get_pkt_type(struct vnt_private *priv)
708708
*
709709
* Return Value: TSF Offset value
710710
*/
711-
u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2)
711+
u64 CARDqGetTSFOffset(unsigned char rx_rate, u64 qwTSF1, u64 qwTSF2)
712712
{
713713
unsigned short wRxBcnTSFOffst;
714714

715-
wRxBcnTSFOffst = rx_bcn_tsf_off[byRxRate % MAX_RATE];
715+
wRxBcnTSFOffst = rx_bcn_tsf_off[rx_rate % MAX_RATE];
716716

717717
qwTSF2 += (u64)wRxBcnTSFOffst;
718718

drivers/staging/vt6655/card.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 qwTSF,
4848
unsigned short wBeaconInterval);
4949
u64 vt6655_get_current_tsf(struct vnt_private *priv);
5050
u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval);
51-
u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2);
51+
u64 CARDqGetTSFOffset(unsigned char rx_rate, u64 qwTSF1, u64 qwTSF2);
5252
unsigned char card_get_pkt_type(struct vnt_private *priv);
5353
void CARDvSafeResetTx(struct vnt_private *priv);
5454
void CARDvSafeResetRx(struct vnt_private *priv);
5555
void CARDbRadioPowerOff(struct vnt_private *priv);
5656
bool card_set_phy_parameter(struct vnt_private *priv, u8 bb_type);
57-
bool card_update_tsf(struct vnt_private *priv, unsigned char byRxRate,
57+
bool card_update_tsf(struct vnt_private *priv, unsigned char rx_rate,
5858
u64 qwBSSTimestamp);
5959
bool CARDbSetBeaconPeriod(struct vnt_private *priv,
6060
unsigned short wBeaconInterval);

0 commit comments

Comments
 (0)