staging: ced1401: fix ced_read_char()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Thu, 10 Jul 2014 09:01:58 +0000 (11:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 22:08:33 +0000 (15:08 -0700)
Rename camel case arguments and locals in function ced_read_char()

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

index 80070857d944e47764a3a449e6f360f214a0aa35..17d1c60e77a8ac5eb63a299749b1480c7c6ef52b 100644 (file)
@@ -937,20 +937,21 @@ int ced_read_write_mem(struct ced_data *ced, bool read, unsigned short ident,
 **  data we return FALSE. Used as part of decoding a DMA request.
 **
 ****************************************************************************/
-static bool ced_read_char(unsigned char *pChar, char *pBuf, unsigned int *pdDone,
-                    unsigned int dGot)
+static bool ced_read_char(unsigned char *character, char *buf,
+                         unsigned int *n_done, unsigned int got)
 {
-       bool bRead = false;
-       unsigned int dDone = *pdDone;
-
-       if (dDone < dGot) {     /*  If there is more data */
-               *pChar = (unsigned char)pBuf[dDone];    /*  Extract the next char */
-               dDone++;        /*  Increment the done count */
-               *pdDone = dDone;
-               bRead = true;   /*  and flag success */
+       bool read = false;
+       unsigned int done = *n_done;
+
+       if (done < got) {       /* If there is more data */
+               /* Extract the next char */
+               *character = (unsigned char)buf[done];
+               done++; /* Increment the done count */
+               *n_done = done;
+               read = true;    /* and flag success */
        }
 
-       return bRead;
+       return read;
 }
 
 #ifdef NOTUSED