From 2459d8e45e26f604608cea2786c8098dc7065b4a Mon Sep 17 00:00:00 2001 From: Luca Ellero Date: Thu, 10 Jul 2014 11:01:59 +0200 Subject: [PATCH] staging: ced1401: fix ced_read_word() Rename camel case arguments and locals in function ced_read_word() Signed-off-by: Luca Ellero Signed-off-by: Greg Kroah-Hartman --- drivers/staging/ced1401/usb1401.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index 17d1c60..d062d5d 100644 --- a/drivers/staging/ced1401/usb1401.c +++ b/drivers/staging/ced1401/usb1401.c @@ -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; } -- 2.7.4