staging: ced1401: rename ReadChar()
authorLuca Ellero <luca.ellero@brickedbrain.com>
Mon, 30 Jun 2014 09:57:46 +0000 (11:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:58:11 +0000 (15:58 -0700)
rename camel case function ReadChar() to 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 6af8c2fdd56c9aa03c085c6f407950ee10d31205..b34e84002ad57c3dabcb41186c6e4f7697be5c4a 100644 (file)
@@ -845,13 +845,13 @@ int ced_read_write_mem(DEVICE_EXTENSION *pdx, bool Read, unsigned short wIdent,
 
 /****************************************************************************
 **
-** ReadChar
+** ced_read_char
 **
 ** Reads a character a buffer. If there is no more
 **  data we return FALSE. Used as part of decoding a DMA request.
 **
 ****************************************************************************/
-static bool ReadChar(unsigned char *pChar, char *pBuf, unsigned int *pdDone,
+static bool ced_read_char(unsigned char *pChar, char *pBuf, unsigned int *pdDone,
                     unsigned int dGot)
 {
        bool bRead = false;
@@ -872,14 +872,14 @@ static bool ReadChar(unsigned char *pChar, char *pBuf, unsigned int *pdDone,
 **
 ** ReadWord
 **
-** Reads a word from the 1401, just uses ReadChar twice; passes on any error
+** Reads a word from the 1401, just uses ced_read_char twice; passes on any error
 **
 *****************************************************************************/
 static bool ReadWord(unsigned short *pWord, char *pBuf, unsigned int *pdDone,
                     unsigned int dGot)
 {
-       if (ReadChar((unsigned char *)pWord, pBuf, pdDone, dGot))
-               return ReadChar(((unsigned char *)pWord) + 1, pBuf, pdDone,
+       if (ced_read_char((unsigned char *)pWord, pBuf, pdDone, dGot))
+               return ced_read_char(((unsigned char *)pWord) + 1, pBuf, pdDone,
                                dGot);
        else
                return false;
@@ -899,19 +899,19 @@ static bool ReadWord(unsigned short *pWord, char *pBuf, unsigned int *pdDone,
 static bool ReadHuff(volatile unsigned int *pDWord, char *pBuf,
                     unsigned int *pdDone, unsigned int dGot)
 {
-       unsigned char ucData;   /* for each read to ReadChar */
+       unsigned char ucData;   /* for each read to ced_read_char */
        bool bReturn = true;    /* assume we will succeed */
        unsigned int dwData = 0;        /* Accumulator for the data */
 
-       if (ReadChar(&ucData, pBuf, pdDone, dGot)) {
+       if (ced_read_char(&ucData, pBuf, pdDone, dGot)) {
                dwData = ucData;        /* copy the data */
                if ((dwData & 0x00000080) != 0) {       /* Bit set for more data ? */
                        dwData &= 0x0000007F;   /* Clear the relevant bit */
-                       if (ReadChar(&ucData, pBuf, pdDone, dGot)) {
+                       if (ced_read_char(&ucData, pBuf, pdDone, dGot)) {
                                dwData = (dwData << 8) | ucData;
                                if ((dwData & 0x00004000) != 0) {       /* three byte sequence ? */
                                        dwData &= 0x00003FFF;   /* Clear the relevant bit */
-                                       if (ReadChar
+                                       if (ced_read_char
                                            (&ucData, pBuf, pdDone, dGot))
                                                dwData = (dwData << 8) | ucData;
                                        else
@@ -950,7 +950,7 @@ static bool ReadDMAInfo(volatile DMADESC *pDmaDesc, DEVICE_EXTENSION *pdx,
 
        dev_dbg(&pdx->interface->dev, "%s\n", __func__);
 
-       if (ReadChar(&ucData, pBuf, &dDone, dwCount)) {
+       if (ced_read_char(&ucData, pBuf, &dDone, dwCount)) {
                unsigned char ucTransCode = (ucData & 0x0F);    /*  get code for transfer type */
                unsigned short wIdent = ((ucData >> 4) & 0x07); /*  and area identifier */
 
This page took 0.026574 seconds and 5 git commands to generate.