From: Luca Ellero Date: Thu, 10 Jul 2014 09:01:59 +0000 (+0200) Subject: staging: ced1401: fix ced_read_word() X-Git-Tag: v3.17-rc1~123^2~1012 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2459d8e45e26f604608cea2786c8098dc7065b4a;p=karo-tx-linux.git 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 --- diff --git a/drivers/staging/ced1401/usb1401.c b/drivers/staging/ced1401/usb1401.c index 17d1c60e77a8..d062d5d7fc52 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; }