staging: vt6656: rename CARDqGetNextTBTT to vnt_get_next_tbtt
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 30 May 2014 22:22:49 +0000 (23:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:56:48 +0000 (15:56 -0700)
Drop card and rename to vnt_get_next_tbtt

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/card.c
drivers/staging/vt6656/card.h

index fdc7cd52112f35a8f76200db64874df69343f9c8..ee013a30d3723488ade717d3097a59d863847566 100644 (file)
@@ -30,7 +30,7 @@
  *      CARDbSoftwareReset - Sortware reset NIC
  *      vnt_get_tsf_offset - Calculate TSFOffset
  *      vnt_get_current_tsf - Read Current NIC TSF counter
- *      CARDqGetNextTBTT - Calculate Next Beacon TSF counter
+ *      vnt_get_next_tbtt - Calculate Next Beacon TSF counter
  *      CARDvSetFirstNextTBTT - Set NIC Beacon time
  *      CARDvUpdateNextTBTT - Sync. NIC Beacon time
  *      CARDbRadioPowerOff - Turn Off NIC Radio Power
@@ -657,7 +657,7 @@ bool vnt_clear_current_tsf(struct vnt_private *priv)
  * Return Value: TSF value of next Beacon
  *
  */
-u64 CARDqGetNextTBTT(u64 tsf, u16 beacon_interval)
+u64 vnt_get_next_tbtt(u64 tsf, u16 beacon_interval)
 {
        u32 beacon_int;
 
@@ -696,7 +696,7 @@ void CARDvSetFirstNextTBTT(struct vnt_private *priv, u16 beacon_interval)
 
        vnt_clear_current_tsf(priv);
 
-       next_tbtt = CARDqGetNextTBTT(next_tbtt, beacon_interval);
+       next_tbtt = vnt_get_next_tbtt(next_tbtt, beacon_interval);
 
        data[0] = (u8)next_tbtt;
        data[1] = (u8)(next_tbtt >> 8);
@@ -733,7 +733,7 @@ void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 tsf,
 {
        u8 data[8];
 
-       tsf = CARDqGetNextTBTT(tsf, beacon_interval);
+       tsf = vnt_get_next_tbtt(tsf, beacon_interval);
 
        data[0] = (u8)tsf;
        data[1] = (u8)(tsf >> 8);
index 78ff81078d4ca0e0e97d1919ecf1c561715bec71..d39a0a51fcf58dc5df30f55d8f7537a85a6ea71c 100644 (file)
@@ -57,7 +57,7 @@ bool vnt_clear_current_tsf(struct vnt_private *);
 void CARDvSetFirstNextTBTT(struct vnt_private *pDevice, u16 wBeaconInterval);
 void CARDvUpdateNextTBTT(struct vnt_private *pDevice, u64 qwTSF,
                         u16 wBeaconInterval);
-u64 CARDqGetNextTBTT(u64 qwTSF, u16 wBeaconInterval);
+u64 vnt_get_next_tbtt(u64, u16);
 u64 vnt_get_tsf_offset(u8 byRxRate, u64 qwTSF1, u64 qwTSF2);
 int CARDbRadioPowerOff(struct vnt_private *pDevice);
 int CARDbRadioPowerOn(struct vnt_private *pDevice);