Search Linux Wireless

[PATCH 1/3] staging: vt6656: int.h correct endian type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Endian type u64 qwTSF Change to new base type __le64 tsf

In INTnsProcessData use le64_to_cpu for qwCurrTSF.

Signed-off-by: Malcolm Priestley <tvboxspy@xxxxxxxxx>
---
 drivers/staging/vt6656/int.c | 2 +-
 drivers/staging/vt6656/int.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/vt6656/int.c b/drivers/staging/vt6656/int.c
index d12036a..22d1ef5 100644
--- a/drivers/staging/vt6656/int.c
+++ b/drivers/staging/vt6656/int.c
@@ -167,7 +167,7 @@ void INTnsProcessData(struct vnt_private *pDevice)
 							NULL);
 			}
 		}
-		pDevice->qwCurrTSF = cpu_to_le64(pINTData->qwTSF);
+		pDevice->qwCurrTSF = le64_to_cpu(pINTData->tsf);
 		/*DBG_PRN_GRP01(("ISR0 = %02x ,
 		  LoTsf =  %08x,
 		  HiTsf =  %08x\n",
diff --git a/drivers/staging/vt6656/int.h b/drivers/staging/vt6656/int.h
index 8e6e217..7ce6efc 100644
--- a/drivers/staging/vt6656/int.h
+++ b/drivers/staging/vt6656/int.h
@@ -45,7 +45,7 @@ typedef struct tagSINTData {
 	u8 byTSR3;
 	u8 byPkt3;
 	u16 wTime3;
-	u64 qwTSF;
+	__le64 tsf;
 	u8 byISR0;
 	u8 byISR1;
 	u8 byRTSSuccess;
-- 
1.9.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux