diff options
author | Malcolm Priestley | 2014-05-26 14:59:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-05-26 19:36:50 +0200 |
commit | 53742906bca9f035ec97fe3578c6064e015c3821 (patch) | |
tree | 4e134bd65d1e7495bc3795432a26bad4f84764d2 /drivers/staging/vt6656/usbpipe.c | |
parent | staging: vt6656: remove dead code ControlvMaskByte (diff) | |
download | kernel-qcow2-linux-53742906bca9f035ec97fe3578c6064e015c3821.tar.gz kernel-qcow2-linux-53742906bca9f035ec97fe3578c6064e015c3821.tar.xz kernel-qcow2-linux-53742906bca9f035ec97fe3578c6064e015c3821.zip |
staging: vt6656: create vnt_control_in_u8 to replace ControlvReadByte
ControlvReadByte will be removed in next patch
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/usbpipe.c')
-rw-r--r-- | drivers/staging/vt6656/usbpipe.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 2264c8c7ec7e..fc68badd8636 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -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. |