]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: vt6656: create vnt_control_in_u8 to replace ControlvReadByte
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 26 May 2014 12:59:06 +0000 (13:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:36:50 +0000 (10:36 -0700)
ControlvReadByte will be removed in next patch

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

index 3373812c80bcd5e42781a8493fa0ac02b8efb626..4cdea2cfdd2964e039de7edd82d4dfdcaa9c2b40 100644 (file)
@@ -1076,7 +1076,7 @@ void BBvSetShortSlotTime(struct vnt_private *priv)
        else
                priv->byBBRxConf |= 0x20;
 
-       ControlvReadByte(priv, MESSAGE_REQUEST_BBREG, 0xe7, &bb_vga);
+       vnt_control_in_u8(priv, MESSAGE_REQUEST_BBREG, 0xe7, &bb_vga);
 
        if (bb_vga == priv->abyBBVGA[0])
                priv->byBBRxConf |= 0x20;
index a5cea43b8bc115cd95c4973cefc3d1d3d6178ae5..b8ebf589fd9fa0f8fbea3ebedc6da94bb59bd3f6 100644 (file)
@@ -162,7 +162,7 @@ int PSbConsiderPowerDown(struct vnt_private *pDevice, int bCheckRxDMA,
        u8 byData;
 
        /* check if already in Doze mode */
-       ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG,
+       vnt_control_in_u8(pDevice, MESSAGE_REQUEST_MACREG,
                                        MAC_REG_PSCTL, &byData);
 
        if ((byData & PSCTL_PS) != 0)
index 2264c8c7ec7ee8a4813c004e03a2c9de8c29b564..fc68badd8636975445bd144ab9a7f1f8b84908f8 100644 (file)
@@ -29,7 +29,7 @@
  *     vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM
  *     vnt_control_in - Read variable length bytes from MEM/BB/MAC/EEPROM
  *     vnt_control_out_u8 - Write one byte to MEM/BB/MAC/EEPROM
- *      ControlvReadByte - Read one byte from MEM/BB/MAC/EEPROM
+ *     vnt_control_in_u8 - Read one byte from MEM/BB/MAC/EEPROM
  *      ControlvMaskByte - Read one byte from MEM/BB/MAC/EEPROM and clear/set some bits in the same address
  *
  * Revision History:
@@ -41,7 +41,6 @@
 #include "int.h"
 #include "rxtx.h"
 #include "dpc.h"
-#include "control.h"
 #include "desc.h"
 #include "device.h"
 
@@ -111,6 +110,12 @@ int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
        return STATUS_SUCCESS;
 }
 
+void vnt_control_in_u8(struct vnt_private *priv, u8 reg, u8 reg_off, u8 *data)
+{
+       vnt_control_in(priv, MESSAGE_TYPE_READ,
+                       reg_off, reg, sizeof(u8), data);
+}
+
 /*
  * Description:
  *      Allocates an usb interrupt in irp and calls USBD.
index a3d3bacd4d66025487fae0146b5c59e4376f23a7..ea71782d8901fbf1c688acbb2fd1232903dd9aa1 100644 (file)
@@ -36,6 +36,7 @@ int vnt_control_out(struct vnt_private *, u8, u16, u16, u16, u8 *);
 int vnt_control_in(struct vnt_private *, u8, u16, u16, u16,  u8 *);
 
 void vnt_control_out_u8(struct vnt_private *, u8, u8, u8);
+void vnt_control_in_u8(struct vnt_private *, u8, u8, u8 *);
 
 int PIPEnsInterruptRead(struct vnt_private *);
 int PIPEnsBulkInUsbRead(struct vnt_private *, struct vnt_rcb *pRCB);
index 79f7463be443a6f8724127d41606201281f7a049..91754fd2cedb92e81109fd4a5f918c1737b8e66c 100644 (file)
@@ -861,7 +861,7 @@ void vRunCommand(struct work_struct *work)
                break;
 
        case WLAN_CMD_MAC_DISPOWERSAVING_START:
-               ControlvReadByte(pDevice, MESSAGE_REQUEST_MACREG, MAC_REG_PSCTL, &byData);
+               vnt_control_in_u8(pDevice, MESSAGE_REQUEST_MACREG, MAC_REG_PSCTL, &byData);
                if ((byData & PSCTL_PS) != 0) {
                        // disable power saving hw function
                        vnt_control_out(pDevice,