Commit 858166f9 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: ced1401: fix ced_read_char()

Rename camel case arguments and locals in function ced_read_char()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bd6b7158
...@@ -937,20 +937,21 @@ int ced_read_write_mem(struct ced_data *ced, bool read, unsigned short ident, ...@@ -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. ** 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, static bool ced_read_char(unsigned char *character, char *buf,
unsigned int dGot) unsigned int *n_done, unsigned int got)
{ {
bool bRead = false; bool read = false;
unsigned int dDone = *pdDone; unsigned int done = *n_done;
if (dDone < dGot) { /* If there is more data */ if (done < got) { /* If there is more data */
*pChar = (unsigned char)pBuf[dDone]; /* Extract the next char */ /* Extract the next char */
dDone++; /* Increment the done count */ *character = (unsigned char)buf[done];
*pdDone = dDone; done++; /* Increment the done count */
bRead = true; /* and flag success */ *n_done = done;
read = true; /* and flag success */
} }
return bRead; return read;
} }
#ifdef NOTUSED #ifdef NOTUSED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment