]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6656: Remove PIPEnsControlOutAsyn/CONTROLnsRequestOutAsyn
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 15 May 2014 21:49:24 +0000 (22:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 22:02:20 +0000 (15:02 -0700)
This now the same as PIPEnsControlOut.

Replace with PIPEnsControlOut/CONTROLnsRequestOut.

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

index 9da9b96add70c100aa507004c0b123ce377e77a6..4658910ca4c1dcb2949576a20e3b6626d41a53f9 100644 (file)
@@ -36,9 +36,6 @@
 #define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \
        PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer)
 
-#define CONTROLnsRequestOutAsyn(Device, Request, Value, Index, Length, Buffer) \
-       PIPEnsControlOutAsyn(Device, Request, Value, Index, Length, Buffer)
-
 #define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \
        PIPEnsControlIn(Device, Request, Value, Index, Length, Buffer)
 
index 7a4a97298a79069ae13131b3e005e6a0a238f3bb..e03f1f97b284a9cf559596d75795cea359ce14e8 100644 (file)
@@ -71,7 +71,7 @@ int FIRMWAREbDownload(struct vnt_private *pDevice)
                wLength = min_t(int, fw->size - ii, FIRMWARE_CHUNK_SIZE);
                memcpy(pBuffer, fw->data + ii, wLength);
 
-               NdisStatus = CONTROLnsRequestOutAsyn(pDevice,
+               NdisStatus = CONTROLnsRequestOut(pDevice,
                                                0,
                                                0x1200+ii,
                                                0x0000,
index 3ce19ddbc569878a3610aca28cf69a8eb8e6a99b..8bd3ab0407bf771169f63882bbcbadd84da971fa 100644 (file)
@@ -75,7 +75,7 @@ void MACvWriteMultiAddr(struct vnt_private *pDevice, u64 mc_filter)
  */
 void MACbShutdown(struct vnt_private *pDevice)
 {
-    CONTROLnsRequestOutAsyn(pDevice,
+       CONTROLnsRequestOut(pDevice,
                         MESSAGE_TYPE_MACSHUTDOWN,
                         0,
                         0,
index 9946bfd57fe405611b28aa597e1ef1837167f724..433edcab5081f3f77e36c95f285c5fa8627524fa 100644 (file)
@@ -64,44 +64,6 @@ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb);
 static void s_nsBulkInUsbIoCompleteRead(struct urb *urb);
 static void s_nsBulkOutIoCompleteWrite(struct urb *urb);
 
-int PIPEnsControlOutAsyn(struct vnt_private *pDevice, u8 byRequest,
-       u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer)
-{
-       int ntStatus;
-
-    if (pDevice->Flags & fMP_DISCONNECTED)
-        return STATUS_FAILURE;
-
-    if (in_interrupt()) {
-        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"in_interrupt return ..byRequest %x\n", byRequest);
-        return STATUS_FAILURE;
-    }
-
-       mutex_lock(&pDevice->usb_lock);
-
-    ntStatus = usb_control_msg(
-                            pDevice->usb,
-                            usb_sndctrlpipe(pDevice->usb , 0),
-                            byRequest,
-                            0x40, // RequestType
-                            wValue,
-                            wIndex,
-                           (void *) pbyBuffer,
-                            wLength,
-                            HZ
-                          );
-    if (ntStatus >= 0) {
-        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"usb_sndctrlpipe ntStatus= %d\n", ntStatus);
-        ntStatus = 0;
-    } else {
-        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"usb_sndctrlpipe fail, ntStatus= %d\n", ntStatus);
-    }
-
-       mutex_unlock(&pDevice->usb_lock);
-
-    return ntStatus;
-}
-
 int PIPEnsControlOut(struct vnt_private *pDevice, u8 byRequest, u16 wValue,
                u16 wIndex, u16 wLength, u8 *pbyBuffer)
 {
index f53770329e7578afa2d94ea33168fd1c46344dfe..42ad4f73243c0ece8d05d1e55dba0149f2743426 100644 (file)
@@ -34,8 +34,6 @@
 
 int PIPEnsControlOut(struct vnt_private *, u8 byRequest, u16 wValue,
                u16 wIndex, u16 wLength, u8 *pbyBuffer);
-int PIPEnsControlOutAsyn(struct vnt_private *, u8 byRequest,
-       u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer);
 int PIPEnsControlIn(struct vnt_private *, u8 byRequest, u16 wValue,
        u16 wIndex, u16 wLength,  u8 *pbyBuffer);