Commit 441c21c3 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: rename PIPEnsControlIn/CONTROLnsRequestIn with vnt_control_in

Replace all to CONTROLnsRequestIn with vnt_control_in and remove macro.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1390b02a
...@@ -893,7 +893,7 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -893,7 +893,7 @@ int BBbVT3184Init(struct vnt_private *priv)
u8 array[256]; u8 array[256];
u8 data; 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, MESSAGE_REQUEST_EEPROM, EEP_MAX_CONTEXT_SIZE,
priv->abyEEPROM); priv->abyEEPROM);
if (status != STATUS_SUCCESS) if (status != STATUS_SUCCESS)
...@@ -1044,7 +1044,7 @@ int BBbVT3184Init(struct vnt_private *priv) ...@@ -1044,7 +1044,7 @@ int BBbVT3184Init(struct vnt_private *priv)
/* Fix for TX USB resets from vendors driver */ /* 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); MESSAGE_REQUEST_MEM, sizeof(data), &data);
data |= 0x2; data |= 0x2;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
* *
* Functions: * Functions:
* vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM * 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 * ControlvWriteByte - Write one byte to MEM/BB/MAC/EEPROM
* ControlvReadByte - Read one byte from 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 * 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, ...@@ -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, void ControlvReadByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
u8 *data) u8 *data)
{ {
CONTROLnsRequestIn(pDevice, MESSAGE_TYPE_READ, vnt_control_in(pDevice, MESSAGE_TYPE_READ,
reg_off, reg, sizeof(u8), data); reg_off, reg, sizeof(u8), data);
return; return;
} }
......
...@@ -33,9 +33,6 @@ ...@@ -33,9 +33,6 @@
#include "device.h" #include "device.h"
#include "usbpipe.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, void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
u8 data); u8 data);
......
...@@ -116,7 +116,7 @@ int FIRMWAREbCheckVersion(struct vnt_private *pDevice) ...@@ -116,7 +116,7 @@ int FIRMWAREbCheckVersion(struct vnt_private *pDevice)
{ {
int ntStatus; int ntStatus;
ntStatus = CONTROLnsRequestIn(pDevice, ntStatus = vnt_control_in(pDevice,
MESSAGE_TYPE_READ, MESSAGE_TYPE_READ,
0, 0,
MESSAGE_REQUEST_VERSION, MESSAGE_REQUEST_VERSION,
......
...@@ -322,7 +322,7 @@ static int device_init_registers(struct vnt_private *pDevice) ...@@ -322,7 +322,7 @@ static int device_init_registers(struct vnt_private *pDevice)
return false; 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); sizeof(struct vnt_rsp_card_init), (u8 *)init_rsp);
if (ntStatus != STATUS_SUCCESS) { if (ntStatus != STATUS_SUCCESS) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
...@@ -331,7 +331,7 @@ static int device_init_registers(struct vnt_private *pDevice) ...@@ -331,7 +331,7 @@ static int device_init_registers(struct vnt_private *pDevice)
} }
/* local ID for AES functions */ /* 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, MAC_REG_LOCALID, MESSAGE_REQUEST_MACREG, 1,
&pDevice->byLocalID); &pDevice->byLocalID);
if (ntStatus != STATUS_SUCCESS) if (ntStatus != STATUS_SUCCESS)
...@@ -535,7 +535,7 @@ static int device_init_registers(struct vnt_private *pDevice) ...@@ -535,7 +535,7 @@ static int device_init_registers(struct vnt_private *pDevice)
pDevice->bHWRadioOff = false; pDevice->bHWRadioOff = false;
if ((pDevice->byRadioCtl & EEP_RADIOCTL_ENABLE) != 0) { 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); MAC_REG_GPIOCTL1, MESSAGE_REQUEST_MACREG, 1, &byTmp);
if (ntStatus != STATUS_SUCCESS) if (ntStatus != STATUS_SUCCESS)
...@@ -1269,7 +1269,7 @@ void vnt_configure_filter(struct vnt_private *priv) ...@@ -1269,7 +1269,7 @@ void vnt_configure_filter(struct vnt_private *priv)
u8 tmp = 0; u8 tmp = 0;
int rc; int rc;
rc = CONTROLnsRequestIn(priv, MESSAGE_TYPE_READ, rc = vnt_control_in(priv, MESSAGE_TYPE_READ,
MAC_REG_RCR, MESSAGE_REQUEST_MACREG, 1, &tmp); MAC_REG_RCR, MESSAGE_REQUEST_MACREG, 1, &tmp);
if (rc == 0) if (rc == 0)
priv->byRxMode = tmp; priv->byRxMode = tmp;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* *
* Functions: * Functions:
* vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM * 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 * ControlvWriteByte - Write one byte to MEM/BB/MAC/EEPROM
* ControlvReadByte - Read one byte from 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 * 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, ...@@ -83,7 +83,7 @@ int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
return STATUS_SUCCESS; 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) u16 index, u16 length, u8 *buffer)
{ {
int status; int status;
......
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
#include "device.h" #include "device.h"
int vnt_control_out(struct vnt_private *, u8, u16, u16, u16, u8 *); int vnt_control_out(struct vnt_private *, u8, u16, u16, u16, u8 *);
int PIPEnsControlIn(struct vnt_private *, u8 byRequest, u16 wValue, int vnt_control_in(struct vnt_private *, u8, u16, u16, u16, u8 *);
u16 wIndex, u16 wLength, u8 *pbyBuffer);
int PIPEnsInterruptRead(struct vnt_private *); int PIPEnsInterruptRead(struct vnt_private *);
int PIPEnsBulkInUsbRead(struct vnt_private *, struct vnt_rcb *pRCB); int PIPEnsBulkInUsbRead(struct vnt_private *, struct vnt_rcb *pRCB);
......
...@@ -725,7 +725,7 @@ void vRunCommand(struct work_struct *work) ...@@ -725,7 +725,7 @@ void vRunCommand(struct work_struct *work)
int ntStatus = STATUS_SUCCESS; int ntStatus = STATUS_SUCCESS;
u8 byTmp; u8 byTmp;
ntStatus = CONTROLnsRequestIn(pDevice, ntStatus = vnt_control_in(pDevice,
MESSAGE_TYPE_READ, MESSAGE_TYPE_READ,
MAC_REG_GPIOCTL1, MAC_REG_GPIOCTL1,
MESSAGE_REQUEST_MACREG, MESSAGE_REQUEST_MACREG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment