staging: vt6656: int.h correct endian type
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 16 Feb 2014 19:08:21 +0000 (19:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 18:59:34 +0000 (10:59 -0800)
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@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/int.c
drivers/staging/vt6656/int.h

index d12036a9858af3a46dcc12345dc5fb2240af346c..22d1ef586e8981a0ba1834a8705fd75a97fe9cb6 100644 (file)
@@ -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",
index 8e6e217ba4ffe8b7247f3947ab5a086a106aa525..7ce6efc7bfec5481165b78c1bae93d2de5dd6953 100644 (file)
@@ -45,7 +45,7 @@ typedef struct tagSINTData {
        u8 byTSR3;
        u8 byPkt3;
        u16 wTime3;
-       u64 qwTSF;
+       __le64 tsf;
        u8 byISR0;
        u8 byISR1;
        u8 byRTSSuccess;