staging: ced1401: rename GetString()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Mon, 30 Jun 2014 09:58:04 +0000 (11:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:58:12 +0000 (15:58 -0700)
rename camel case function GetString() to ced_get_string()

Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/ced_ioc.c
drivers/staging/ced1401/usb1401.c
drivers/staging/ced1401/usb1401.h

index 112cc13dd3f22644be33623c22055ff627126c99..94244c47cef5ebfee64d7df7753d3d0237a366b6 100644 (file)
@@ -415,11 +415,11 @@ int ced_reset(DEVICE_EXTENSION *pdx)
 }
 
 /****************************************************************************
-** GetChar
+** ced_get_char
 **
 ** Gets a single character from the 1401
 ****************************************************************************/
-int GetChar(DEVICE_EXTENSION *pdx)
+int ced_get_char(DEVICE_EXTENSION *pdx)
 {
        int iReturn = U14ERR_NOIN;      /*  assume we will get  nothing */
        mutex_lock(&pdx->io_mutex);     /*  Protect disconnect from new i/o */
@@ -446,7 +446,7 @@ int GetChar(DEVICE_EXTENSION *pdx)
 }
 
 /****************************************************************************
-** GetString
+** ced_get_string
 **
 ** Gets a string from the 1401. Returns chars up to the next CR or when
 ** there are no more to read or nowhere to put them. CR is translated to
@@ -456,7 +456,7 @@ int GetChar(DEVICE_EXTENSION *pdx)
 ** returns the count of characters (including the terminator, or 0 if none
 ** or a negative error code.
 ****************************************************************************/
-int GetString(DEVICE_EXTENSION *pdx, char __user *pUser, int n)
+int ced_get_string(DEVICE_EXTENSION *pdx, char __user *pUser, int n)
 {
        int nAvailable;         /*  character in the buffer */
        int iReturn = U14ERR_NOIN;
index f8507b5725cf87e877ec140925059a383b165686..6977dacaed43b879540039b95fb06e2a25258aff 100644 (file)
@@ -1236,7 +1236,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
                return ced_reset(pdx);
 
        case _IOC_NR(IOCTL_CED_GETCHAR):
-               return GetChar(pdx);
+               return ced_get_char(pdx);
 
        case _IOC_NR(IOCTL_CED_SENDCHAR):
                return ced_send_char(pdx, (char)ulArg);
@@ -1248,7 +1248,7 @@ static long ced_ioctl(struct file *file, unsigned int cmd, unsigned long ulArg)
                return LineCount(pdx);
 
        case _IOC_NR(IOCTL_CED_GETSTRING(0)):
-               return GetString(pdx, (char __user *)ulArg, _IOC_SIZE(cmd));
+               return ced_get_string(pdx, (char __user *)ulArg, _IOC_SIZE(cmd));
 
        case _IOC_NR(IOCTL_CED_SETTRANSFER):
                return SetTransfer(pdx, (struct transfer_area_desc __user *) ulArg);
index 26c76f2b088fa59ff9ca45399fcb4655a3a3f3cb..9c409f3e36f4d0d1ffceaf6dac91c50b82d65a37 100644 (file)
@@ -214,8 +214,8 @@ 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_read_write_cancel(DEVICE_EXTENSION *pdx);
 extern int ced_reset(DEVICE_EXTENSION *pdx);
-extern int GetChar(DEVICE_EXTENSION *pdx);
-extern int GetString(DEVICE_EXTENSION *pdx, char __user *pUser, int n);
+extern int ced_get_char(DEVICE_EXTENSION *pdx);
+extern int ced_get_string(DEVICE_EXTENSION *pdx, char __user *pUser, int n);
 extern int SetTransfer(DEVICE_EXTENSION *pdx, struct transfer_area_desc __user *pTD);
 extern int UnsetTransfer(DEVICE_EXTENSION *pdx, int nArea);
 extern int SetEvent(DEVICE_EXTENSION *pdx, struct transfer_event __user *pTE);