OSDN Git Service

staging: ced1401: rename Is1401()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Mon, 30 Jun 2014 09:58:00 +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 Is1401() to ced_is_1401()

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.h

index cb49eab..1131443 100644 (file)
@@ -284,7 +284,7 @@ static int ced_in_self_test(DEVICE_EXTENSION *pdx, unsigned int *pState)
 }
 
 /***************************************************************************
-** Is1401 - ALWAYS CALLED HOLDING THE io_mutex
+** ced_is_1401 - ALWAYS CALLED HOLDING THE io_mutex
 **
 ** Tests for the current state of the 1401. Sets sCurrentState:
 **
@@ -301,7 +301,7 @@ static int ced_in_self_test(DEVICE_EXTENSION *pdx, unsigned int *pState)
 **
 **  Returns TRUE if a 1401 detected and OK, else FALSE
 ****************************************************************************/
-bool Is1401(DEVICE_EXTENSION *pdx)
+bool ced_is_1401(DEVICE_EXTENSION *pdx)
 {
        int iReturn;
        dev_dbg(&pdx->interface->dev, "%s\n", __func__);
@@ -353,7 +353,7 @@ bool Is1401(DEVICE_EXTENSION *pdx)
 **  all is OK.
 **
 ** If any of the above conditions are not met, or if the state or type of the
-**  1401 has changed since the previous test, the full Is1401 test is done, but
+**  1401 has changed since the previous test, the full ced_is_1401 test is done, but
 **  only if bCanReset is also TRUE.
 **
 ** The return value is TRUE if a useable 1401 is found, FALSE if not
@@ -390,10 +390,10 @@ bool QuickCheck(DEVICE_EXTENSION *pdx, bool bTestBuff, bool bCanReset)
        }
 
        if (!bRet && bCanReset) { /*  If all not OK, then */
-               dev_info(&pdx->interface->dev, "%s: Is1401 %d %d %d %d\n",
+               dev_info(&pdx->interface->dev, "%s: ced_is_1401 %d %d %d %d\n",
                         __func__, bShortTest, pdx->sCurrentState, bTestBuff,
                         pdx->bForceReset);
-               bRet = Is1401(pdx);     /*   do full test */
+               bRet = ced_is_1401(pdx);        /*   do full test */
        }
 
        return bRet;
@@ -1054,7 +1054,7 @@ int CheckSelfTest(DEVICE_EXTENSION *pdx, TGET_SELFTEST __user *pGST)
        if (gst.code < 0) {     /*  If we have a problem or finished */
                                /*  If using the 2890 we should reset properly */
                if ((pdx->nPipes == 4) && (pdx->s1401Type <= TYPEPOWER))
-                       Is1401(pdx);    /*  Get 1401 reset and OK */
+                       ced_is_1401(pdx);       /*  Get 1401 reset and OK */
                else
                        QuickCheck(pdx, true, true);    /*  Otherwise check without reset unless problems */
        }
index 7b541e9..c002880 100644 (file)
@@ -213,7 +213,7 @@ extern int ced_send_string(DEVICE_EXTENSION *pdx, const char __user *pData, unsi
 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 bool Is1401(DEVICE_EXTENSION *pdx);
+extern bool ced_is_1401(DEVICE_EXTENSION *pdx);
 extern bool QuickCheck(DEVICE_EXTENSION *pdx, bool bTestBuff, bool bCanReset);
 extern int Reset1401(DEVICE_EXTENSION *pdx);
 extern int GetChar(DEVICE_EXTENSION *pdx);