staging: ced1401: fix ced_read_word()
Rename camel case arguments and locals in function ced_read_word() Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
858166f9f2
commit
2459d8e45e
1 changed files with 7 additions and 6 deletions
|
@ -959,15 +959,16 @@ static bool ced_read_char(unsigned char *character, char *buf,
|
|||
**
|
||||
** ced_read_word
|
||||
**
|
||||
** Reads a word from the 1401, just uses ced_read_char twice; passes on any error
|
||||
** Reads a word from the 1401, just uses ced_read_char twice;
|
||||
** passes on any error
|
||||
**
|
||||
*****************************************************************************/
|
||||
static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDone,
|
||||
unsigned int dGot)
|
||||
static bool ced_read_word(unsigned short *word, char *buf, unsigned int *n_done,
|
||||
unsigned int got)
|
||||
{
|
||||
if (ced_read_char((unsigned char *)pWord, pBuf, pdDone, dGot))
|
||||
return ced_read_char(((unsigned char *)pWord) + 1, pBuf, pdDone,
|
||||
dGot);
|
||||
if (ced_read_char((unsigned char *)word, buf, n_done, got))
|
||||
return ced_read_char(((unsigned char *)word) + 1, buf, n_done,
|
||||
got);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue