Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: Rename function CARDbGetCurrentTSF

The name of the function uses CamelCase which
is not accepted by checkpatch.pl

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2b92db8d67e8dd1fc85b45efe3b32d2199371190.1651435890.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Philipp Hortmann and committed by
Greg Kroah-Hartman
fed5b533 889d1895

+7 -7
+5 -5
drivers/staging/vt6655/card.c
··· 11 11 * CARDbAddBasicRate - Add to BasicRateSet 12 12 * CARDbIsOFDMinBasicRate - Check if any OFDM rate is in BasicRateSet 13 13 * CARDqGetTSFOffset - Calculate TSFOffset 14 - * CARDbGetCurrentTSF - Read Current NIC TSF counter 14 + * vt6655_get_current_tsf - Read Current NIC TSF counter 15 15 * CARDqGetNextTBTT - Calculate Next Beacon TSF counter 16 16 * CARDvSetFirstNextTBTT - Set NIC Beacon time 17 17 * CARDvUpdateNextTBTT - Sync. NIC Beacon time ··· 288 288 u64 local_tsf; 289 289 u64 qwTSFOffset = 0; 290 290 291 - CARDbGetCurrentTSF(priv, &local_tsf); 291 + vt6655_get_current_tsf(priv, &local_tsf); 292 292 293 293 if (qwBSSTimestamp != local_tsf) { 294 294 qwTSFOffset = CARDqGetTSFOffset(byRxRate, qwBSSTimestamp, ··· 322 322 { 323 323 u64 qwNextTBTT = 0; 324 324 325 - CARDbGetCurrentTSF(priv, &qwNextTBTT); /* Get Local TSF counter */ 325 + vt6655_get_current_tsf(priv, &qwNextTBTT); /* Get Local TSF counter */ 326 326 327 327 qwNextTBTT = CARDqGetNextTBTT(qwNextTBTT, wBeaconInterval); 328 328 ··· 739 739 * 740 740 * Return Value: true if success; otherwise false 741 741 */ 742 - bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF) 742 + bool vt6655_get_current_tsf(struct vnt_private *priv, u64 *pqwCurrTSF) 743 743 { 744 744 void __iomem *iobase = priv->port_offset; 745 745 unsigned short ww; ··· 807 807 void __iomem *iobase = priv->port_offset; 808 808 u64 qwNextTBTT = 0; 809 809 810 - CARDbGetCurrentTSF(priv, &qwNextTBTT); /* Get Local TSF counter */ 810 + vt6655_get_current_tsf(priv, &qwNextTBTT); /* Get Local TSF counter */ 811 811 812 812 qwNextTBTT = CARDqGetNextTBTT(qwNextTBTT, wBeaconInterval); 813 813 /* Set NextTBTT */
+1 -1
drivers/staging/vt6655/card.h
··· 46 46 unsigned short wBeaconInterval); 47 47 void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 qwTSF, 48 48 unsigned short wBeaconInterval); 49 - bool CARDbGetCurrentTSF(struct vnt_private *priv, u64 *pqwCurrTSF); 49 + bool vt6655_get_current_tsf(struct vnt_private *priv, u64 *pqwCurrTSF); 50 50 u64 CARDqGetNextTBTT(u64 qwTSF, unsigned short wBeaconInterval); 51 51 u64 CARDqGetTSFOffset(unsigned char byRxRate, u64 qwTSF1, u64 qwTSF2); 52 52 unsigned char CARDbyGetPktType(struct vnt_private *priv);
+1 -1
drivers/staging/vt6655/device_main.c
··· 1603 1603 struct vnt_private *priv = hw->priv; 1604 1604 u64 tsf; 1605 1605 1606 - CARDbGetCurrentTSF(priv, &tsf); 1606 + vt6655_get_current_tsf(priv, &tsf); 1607 1607 1608 1608 return tsf; 1609 1609 }