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

staging: ced1401: rename TestEvent()

rename camel case function TestEvent() to ced_test_event()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1971a00e
...@@ -856,12 +856,12 @@ int ced_wait_event(DEVICE_EXTENSION *pdx, int nArea, int msTimeOut) ...@@ -856,12 +856,12 @@ int ced_wait_event(DEVICE_EXTENSION *pdx, int nArea, int msTimeOut)
} }
/**************************************************************************** /****************************************************************************
** TestEvent ** ced_test_event
** Test the event to see if a ced_wait_event would return immediately. Returns the ** Test the event to see if a ced_wait_event would return immediately. Returns the
** number of times a block completed since the last call, or 0 if none or a ** number of times a block completed since the last call, or 0 if none or a
** negative error. ** negative error.
****************************************************************************/ ****************************************************************************/
int TestEvent(DEVICE_EXTENSION *pdx, int nArea) int ced_test_event(DEVICE_EXTENSION *pdx, int nArea)
{ {
int iReturn; int iReturn;
if ((unsigned)nArea >= MAX_TRANSAREAS) if ((unsigned)nArea >= MAX_TRANSAREAS)
......
...@@ -1328,7 +1328,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg) ...@@ -1328,7 +1328,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
return ced_wait_event(pdx, (int)(ulArg & 0xff), (int)(ulArg >> 8)); return ced_wait_event(pdx, (int)(ulArg & 0xff), (int)(ulArg >> 8));
case _IOC_NR(IOCTL_CED_TESTEVENT): case _IOC_NR(IOCTL_CED_TESTEVENT):
return TestEvent(pdx, (int)ulArg); return ced_test_event(pdx, (int)ulArg);
default: default:
return U14ERR_NO_SUCH_FN; return U14ERR_NO_SUCH_FN;
......
...@@ -240,5 +240,5 @@ extern int SetCircular(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user * ...@@ -240,5 +240,5 @@ extern int SetCircular(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *
extern int GetCircBlock(DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB); extern int GetCircBlock(DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB);
extern int FreeCircBlock(DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB); extern int FreeCircBlock(DEVICE_EXTENSION *pdx, TCIRCBLOCK __user *pCB);
extern int ced_wait_event(DEVICE_EXTENSION *pdx, int nArea, int msTimeOut); extern int ced_wait_event(DEVICE_EXTENSION *pdx, int nArea, int msTimeOut);
extern int TestEvent(DEVICE_EXTENSION *pdx, int nArea); extern int ced_test_event(DEVICE_EXTENSION *pdx, int nArea);
#endif #endif
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