staging: vt6656: rename PIPEnsControlIn/CONTROLnsRequestIn with vnt_control_in
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 26 May 2014 12:59:02 +0000 (13:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:36:49 +0000 (10:36 -0700)
Replace all to CONTROLnsRequestIn with vnt_control_in and remove macro.

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/control.c
drivers/staging/vt6656/control.h
drivers/staging/vt6656/firmware.c
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/usbpipe.c
drivers/staging/vt6656/usbpipe.h
drivers/staging/vt6656/wcmd.c

index 8a509d895615ea8cd871305c6510f37e04c4bc4c..8a965bf821c5d52507656a8eabe7936c9851d630 100644 (file)
@@ -893,7 +893,7 @@ int BBbVT3184Init(struct vnt_private *priv)
        u8 array[256];
        u8 data;
 
-       status = CONTROLnsRequestIn(priv, MESSAGE_TYPE_READ, 0,
+       status = vnt_control_in(priv, MESSAGE_TYPE_READ, 0,
                MESSAGE_REQUEST_EEPROM, EEP_MAX_CONTEXT_SIZE,
                                                priv->abyEEPROM);
        if (status != STATUS_SUCCESS)
@@ -1044,7 +1044,7 @@ int BBbVT3184Init(struct vnt_private *priv)
 
 
        /* Fix for TX USB resets from vendors driver */
-       CONTROLnsRequestIn(priv, MESSAGE_TYPE_READ, USB_REG4,
+       vnt_control_in(priv, MESSAGE_TYPE_READ, USB_REG4,
                MESSAGE_REQUEST_MEM, sizeof(data), &data);
 
        data |= 0x2;
index 074052190ed5a3be646c00d1bba73c896e4eb52e..0c59d6d13f9bb16e2f7eee960765ba0881c6a98a 100644 (file)
@@ -27,7 +27,6 @@
  *
  * Functions:
  *      vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM
- *      CONTROLnsRequestIn - Read variable length bytes from MEM/BB/MAC/EEPROM
  *      ControlvWriteByte - Write one byte to MEM/BB/MAC/EEPROM
  *      ControlvReadByte - Read one byte from MEM/BB/MAC/EEPROM
  *      ControlvMaskByte - Read one byte from MEM/BB/MAC/EEPROM and clear/set
@@ -58,7 +57,7 @@ void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
 void ControlvReadByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
                        u8 *data)
 {
-       CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ,
+       vnt_control_in(pDevice, MESSAGE_TYPE_READ,
                        reg_off, reg, sizeof(u8), data);
        return;
 }
index 17a23d532adb04f5100e2c8b6cd29b6eba404eed..db9dd54c7623589127ccba6bc77154a1d2ee4032 100644 (file)
@@ -33,9 +33,6 @@
 #include "device.h"
 #include "usbpipe.h"
 
-#define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \
-       PIPEnsControlIn(Device, Request, Value, Index, Length, Buffer)
-
 void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
                        u8 data);
 
index 13b68d5c558872f57a17c24cd4918af3eef1583a..f9d685f003008ab8fd3dab09f2206afcde393f50 100644 (file)
@@ -116,7 +116,7 @@ int FIRMWAREbCheckVersion(struct vnt_private *pDevice)
 {
        int ntStatus;
 
-       ntStatus = CONTROLnsRequestIn(pDevice,
+       ntStatus = vnt_control_in(pDevice,
                                        MESSAGE_TYPE_READ,
                                        0,
                                        MESSAGE_REQUEST_VERSION,
index 9e70aa5c29d14d68b5ed2a779dc1ae3fca0d7ec7..01dd0680c012475951c6e7bc7d200c55e8c7eebe 100644 (file)
@@ -322,7 +322,7 @@ static int device_init_registers(struct vnt_private *pDevice)
                return false;
        }
 
-       ntStatus = CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_INIT_RSP, 0, 0,
+       ntStatus = vnt_control_in(pDevice, MESSAGE_TYPE_INIT_RSP, 0, 0,
                sizeof(struct vnt_rsp_card_init), (u8 *)init_rsp);
        if (ntStatus != STATUS_SUCCESS) {
                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
@@ -331,7 +331,7 @@ static int device_init_registers(struct vnt_private *pDevice)
        }
 
        /* local ID for AES functions */
-       ntStatus = CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ,
+       ntStatus = vnt_control_in(pDevice, MESSAGE_TYPE_READ,
                MAC_REG_LOCALID, MESSAGE_REQUEST_MACREG, 1,
                        &pDevice->byLocalID);
        if (ntStatus != STATUS_SUCCESS)
@@ -535,7 +535,7 @@ static int device_init_registers(struct vnt_private *pDevice)
        pDevice->bHWRadioOff = false;
 
        if ((pDevice->byRadioCtl & EEP_RADIOCTL_ENABLE) != 0) {
-               ntStatus = CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ,
+               ntStatus = vnt_control_in(pDevice, MESSAGE_TYPE_READ,
                        MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &byTmp);
 
                if (ntStatus != STATUS_SUCCESS)
@@ -1269,7 +1269,7 @@ void vnt_configure_filter(struct vnt_private *priv)
        u8 tmp = 0;
        int rc;
 
-       rc = CONTROLnsRequestIn(priv, MESSAGE_TYPE_READ,
+       rc = vnt_control_in(priv, MESSAGE_TYPE_READ,
                MAC_REG_RCR, MESSAGE_REQUEST_MACREG, 1, &tmp);
        if (rc == 0)
                priv->byRxMode = tmp;
index 443338eb18bfeb6b034a47e77b291307f1a8381e..7d4e131303de43b7ed5ab06078bfcf9963465c02 100644 (file)
@@ -27,7 +27,7 @@
  *
  * Functions:
  *     vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM
- *      CONTROLnsRequestIn - Read variable length bytes from MEM/BB/MAC/EEPROM
+ *     vnt_control_in - Read variable length bytes from MEM/BB/MAC/EEPROM
  *      ControlvWriteByte - Write one byte to MEM/BB/MAC/EEPROM
  *      ControlvReadByte - 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
@@ -83,7 +83,7 @@ int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
        return STATUS_SUCCESS;
 }
 
-int PIPEnsControlIn(struct vnt_private *priv, u8 request, u16 value,
+int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
                u16 index, u16 length, u8 *buffer)
 {
        int status;
index 6ca250f8aeaf92e1f9b7f9d7021761d0295d3fa0..f04e30bfbfae7d83f6c497bcac5d58977da1e945 100644 (file)
@@ -33,8 +33,7 @@
 #include "device.h"
 
 int vnt_control_out(struct vnt_private *, u8, u16, u16, u16, u8 *);
-int PIPEnsControlIn(struct vnt_private *, u8 byRequest, u16 wValue,
-       u16 wIndex, u16 wLength,  u8 *pbyBuffer);
+int vnt_control_in(struct vnt_private *, u8, u16, u16, u16,  u8 *);
 
 int PIPEnsInterruptRead(struct vnt_private *);
 int PIPEnsBulkInUsbRead(struct vnt_private *, struct vnt_rcb *pRCB);
index 99477944c045e1ac5b16fbb76f4a7538ca5e3ac7..aae573baec1bf40f46f8bd6bc32b9ff85cd9c3e4 100644 (file)
@@ -725,7 +725,7 @@ void vRunCommand(struct work_struct *work)
                        int ntStatus = STATUS_SUCCESS;
                        u8            byTmp;
 
-                       ntStatus = CONTROLnsRequestIn(pDevice,
+                       ntStatus = vnt_control_in(pDevice,
                                        MESSAGE_TYPE_READ,
                                        MAC_REG_GPIOCTL1,
                                        MESSAGE_REQUEST_MACREG,
This page took 0.045879 seconds and 5 git commands to generate.