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

staging: ced1401: rename SetEvent()

rename camel case function SetEvent() to ced_set_event()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f6f679a
...@@ -772,14 +772,14 @@ int ced_unset_transfer(DEVICE_EXTENSION *pdx, int nArea) ...@@ -772,14 +772,14 @@ int ced_unset_transfer(DEVICE_EXTENSION *pdx, int nArea)
} }
/**************************************************************************** /****************************************************************************
** SetEvent ** ced_set_event
** Creates an event that we can test for based on a transfer to/from an area. ** Creates an event that we can test for based on a transfer to/from an area.
** The area must be setup for a transfer. We attempt to simulate the Windows ** The area must be setup for a transfer. We attempt to simulate the Windows
** driver behavior for events (as we don't actually use them), which is to ** driver behavior for events (as we don't actually use them), which is to
** pretend that whatever the user asked for was achieved, so we return 1 if ** pretend that whatever the user asked for was achieved, so we return 1 if
** try to create one, and 0 if they ask to remove (assuming all else was OK). ** try to create one, and 0 if they ask to remove (assuming all else was OK).
****************************************************************************/ ****************************************************************************/
int SetEvent(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE) int ced_set_event(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE)
{ {
int iReturn = U14ERR_NOERROR; int iReturn = U14ERR_NOERROR;
struct transfer_event te; struct transfer_event te;
......
...@@ -1257,7 +1257,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg) ...@@ -1257,7 +1257,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
return ced_unset_transfer(pdx, (int)ulArg); return ced_unset_transfer(pdx, (int)ulArg);
case _IOC_NR(IOCTL_CED_SETEVENT): case _IOC_NR(IOCTL_CED_SETEVENT):
return SetEvent(pdx, (struct transfer_event __user *) ulArg); return ced_set_event(pdx, (struct transfer_event __user *) ulArg);
case _IOC_NR(IOCTL_CED_GETOUTBUFSPACE): case _IOC_NR(IOCTL_CED_GETOUTBUFSPACE):
return ced_get_out_buf_space(pdx); return ced_get_out_buf_space(pdx);
......
...@@ -218,7 +218,7 @@ extern int ced_get_char(DEVICE_EXTENSION *pdx); ...@@ -218,7 +218,7 @@ extern int ced_get_char(DEVICE_EXTENSION *pdx);
extern int ced_get_string(DEVICE_EXTENSION *pdx, char __user *pUser, int n); extern int ced_get_string(DEVICE_EXTENSION *pdx, char __user *pUser, int n);
extern int ced_set_transfer(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *pTD); extern int ced_set_transfer(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *pTD);
extern int ced_unset_transfer(DEVICE_EXTENSION *pdx, int nArea); extern int ced_unset_transfer(DEVICE_EXTENSION *pdx, int nArea);
extern int SetEvent(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE); extern int ced_set_event(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE);
extern int ced_stat_1401(DEVICE_EXTENSION *pdx); extern int ced_stat_1401(DEVICE_EXTENSION *pdx);
extern int ced_line_count(DEVICE_EXTENSION *pdx); extern int ced_line_count(DEVICE_EXTENSION *pdx);
extern int ced_get_out_buf_space(DEVICE_EXTENSION *pdx); extern int ced_get_out_buf_space(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