Commit a5830de9 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: ced1401: rename ReadWrite_Cancel()

rename camel case function ReadWrite_Cancel() to ced_read_write_cancel()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 46e6a290
...@@ -214,11 +214,11 @@ int ced_get_state(DEVICE_EXTENSION *pdx, __u32 *state, __u32 *error) ...@@ -214,11 +214,11 @@ int ced_get_state(DEVICE_EXTENSION *pdx, __u32 *state, __u32 *error)
} }
/**************************************************************************** /****************************************************************************
** ReadWrite_Cancel ** ced_read_write_cancel
** **
** Kills off staged read\write request from the USB if one is pending. ** Kills off staged read\write request from the USB if one is pending.
****************************************************************************/ ****************************************************************************/
int ReadWrite_Cancel(DEVICE_EXTENSION *pdx) int ced_read_write_cancel(DEVICE_EXTENSION *pdx)
{ {
dev_dbg(&pdx->interface->dev, "%s: entry %d\n", dev_dbg(&pdx->interface->dev, "%s: entry %d\n",
__func__, pdx->bStagedUrbPending); __func__, pdx->bStagedUrbPending);
...@@ -231,7 +231,7 @@ int ReadWrite_Cancel(DEVICE_EXTENSION *pdx) ...@@ -231,7 +231,7 @@ int ReadWrite_Cancel(DEVICE_EXTENSION *pdx)
if (pdx->bStagedUrbPending) { /* anything to be cancelled? May need more... */ if (pdx->bStagedUrbPending) { /* anything to be cancelled? May need more... */
dev_info(&pdx->interface - dev, dev_info(&pdx->interface - dev,
"ReadWrite_Cancel about to cancel Urb\n"); "ced_read_write_cancel about to cancel Urb\n");
/* Clear the staging done flag */ /* Clear the staging done flag */
/* KeClearEvent(&pdx->StagingDoneEvent); */ /* KeClearEvent(&pdx->StagingDoneEvent); */
USB_ASSERT(pdx->pStagedIrp != NULL); USB_ASSERT(pdx->pStagedIrp != NULL);
...@@ -255,7 +255,7 @@ int ReadWrite_Cancel(DEVICE_EXTENSION *pdx) ...@@ -255,7 +255,7 @@ int ReadWrite_Cancel(DEVICE_EXTENSION *pdx)
ntStatus = U14ERR_FAIL; ntStatus = U14ERR_FAIL;
} }
USB_KdPrint(DBGLVL_DEFAULT, USB_KdPrint(DBGLVL_DEFAULT,
("ReadWrite_Cancel ntStatus = 0x%x decimal %d\n", ("ced_read_write_cancel ntStatus = 0x%x decimal %d\n",
ntStatus, ntStatus)); ntStatus, ntStatus));
} else } else
spin_unlock_irq(&pdx->stagedLock); spin_unlock_irq(&pdx->stagedLock);
...@@ -978,7 +978,7 @@ int StartSelfTest(DEVICE_EXTENSION *pdx) ...@@ -978,7 +978,7 @@ int StartSelfTest(DEVICE_EXTENSION *pdx)
ced_flush_in_buff(pdx); /* Clear out input buffer & pipe */ ced_flush_in_buff(pdx); /* Clear out input buffer & pipe */
ced_flush_out_buff(pdx); /* Clear output buffer & pipe */ ced_flush_out_buff(pdx); /* Clear output buffer & pipe */
/* so things stay tidy */ /* so things stay tidy */
/* ReadWrite_Cancel(pDeviceObject); */ /* ced_read_write_cancel(pDeviceObject); */
pdx->dwDMAFlag = MODE_CHAR; /* Clear DMA mode flags here */ pdx->dwDMAFlag = MODE_CHAR; /* Clear DMA mode flags here */
nGot = usb_control_msg(pdx->udev, usb_rcvctrlpipe(pdx->udev, 0), nGot = usb_control_msg(pdx->udev, usb_rcvctrlpipe(pdx->udev, 0),
......
...@@ -212,7 +212,7 @@ extern int ClearArea(DEVICE_EXTENSION *pdx, int nArea); ...@@ -212,7 +212,7 @@ extern int ClearArea(DEVICE_EXTENSION *pdx, int nArea);
extern int ced_send_string(DEVICE_EXTENSION *pdx, const char __user *pData, unsigned int n); extern int ced_send_string(DEVICE_EXTENSION *pdx, const char __user *pData, unsigned int n);
extern int ced_send_char(DEVICE_EXTENSION *pdx, char c); extern int ced_send_char(DEVICE_EXTENSION *pdx, char c);
extern int ced_get_state(DEVICE_EXTENSION *pdx, __u32 *state, __u32 *error); extern int ced_get_state(DEVICE_EXTENSION *pdx, __u32 *state, __u32 *error);
extern int ReadWrite_Cancel(DEVICE_EXTENSION *pdx); extern int ced_read_write_cancel(DEVICE_EXTENSION *pdx);
extern bool Is1401(DEVICE_EXTENSION *pdx); extern bool Is1401(DEVICE_EXTENSION *pdx);
extern bool QuickCheck(DEVICE_EXTENSION *pdx, bool bTestBuff, bool bCanReset); extern bool QuickCheck(DEVICE_EXTENSION *pdx, bool bTestBuff, bool bCanReset);
extern int Reset1401(DEVICE_EXTENSION *pdx); extern int Reset1401(DEVICE_EXTENSION *pdx);
......
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