]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: vt6656: rxtx Replace vnt_tx_fifo_head wReserved
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 22 Mar 2014 09:01:30 +0000 (09:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Apr 2014 23:05:29 +0000 (16:05 -0700)
At run time wReserved has the value of wCurrentRate.

Replace with current_rate with __le16 base type and endian correct
wCurrentRate.

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

index 4bb13a7c75f21668516c866124436f750b8a1509..2b67b1bdd90ba0edf9a7f3043890b959192c1243 100644 (file)
@@ -800,7 +800,7 @@ static u16 s_vGenerateTxParameter(struct vnt_private *pDevice,
        u16 wFifoCtl;
        u8 byFBOption = AUTO_FB_NONE;
 
-       pFifoHead->wReserved = wCurrentRate;
+       pFifoHead->current_rate = cpu_to_le16(wCurrentRate);
        wFifoCtl = pFifoHead->wFIFOCtl;
 
        if (wFifoCtl & FIFOCTL_AUTO_FB_0)
index 779c6722d1b8bf092e41653062ffe73b67a7db9d..4dfb2e0c6ae78a6b6d30dbfccd1c3fc95d0229e3 100644 (file)
@@ -219,7 +219,7 @@ struct vnt_tx_fifo_head {
        u16 wFIFOCtl;
        __le16 time_stamp;
        u16 wFragCtl;
-       u16 wReserved;
+       __le16 current_rate;
 } __packed;
 
 struct vnt_tx_buffer {