mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
staging: ced1401: rename SetEvent()
rename camel case function SetEvent() to ced_set_event() Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0f6f679a15
commit
617bfec33c
3 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
** 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
|
||||
** 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).
|
||||
****************************************************************************/
|
||||
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;
|
||||
struct transfer_event te;
|
||||
|
|
|
@ -1257,7 +1257,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
|
|||
return ced_unset_transfer(pdx, (int)ulArg);
|
||||
|
||||
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):
|
||||
return ced_get_out_buf_space(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_set_transfer(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *pTD);
|
||||
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_line_count(DEVICE_EXTENSION *pdx);
|
||||
extern int ced_get_out_buf_space(DEVICE_EXTENSION *pdx);
|
||||
|
|
Loading…
Reference in a new issue