Commit 2732a875 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman

staging: ced1401: rename ReadHuff()

rename camel case function ReadHuff() to ced_read_huff()
Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 026a8210
...@@ -887,7 +887,7 @@ static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDon ...@@ -887,7 +887,7 @@ static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDon
#endif #endif
/**************************************************************************** /****************************************************************************
** ReadHuff ** ced_read_huff
** **
** Reads a coded number in and returns it, Code is: ** Reads a coded number in and returns it, Code is:
** If data is in range 0..127 we receive 1 byte. If data in range 128-16383 ** If data is in range 0..127 we receive 1 byte. If data in range 128-16383
...@@ -896,7 +896,7 @@ static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDon ...@@ -896,7 +896,7 @@ static bool ced_read_word(unsigned short *pWord, char *pBuf, unsigned int *pdDon
** to indicate three byte total. ** to indicate three byte total.
** **
*****************************************************************************/ *****************************************************************************/
static bool ReadHuff(volatile unsigned int *pDWord, char *pBuf, static bool ced_read_huff(volatile unsigned int *pDWord, char *pBuf,
unsigned int *pdDone, unsigned int dGot) unsigned int *pdDone, unsigned int dGot)
{ {
unsigned char ucData; /* for each read to ced_read_char */ unsigned char ucData; /* for each read to ced_read_char */
...@@ -970,9 +970,9 @@ static bool ReadDMAInfo(volatile DMADESC *pDmaDesc, DEVICE_EXTENSION *pdx, ...@@ -970,9 +970,9 @@ static bool ReadDMAInfo(volatile DMADESC *pDmaDesc, DEVICE_EXTENSION *pdx,
case TM_EXTTO1401: case TM_EXTTO1401:
{ {
bResult = bResult =
ReadHuff(&(pDmaDesc->dwOffset), pBuf, ced_read_huff(&(pDmaDesc->dwOffset), pBuf,
&dDone, dwCount) &dDone, dwCount)
&& ReadHuff(&(pDmaDesc->dwSize), pBuf, && ced_read_huff(&(pDmaDesc->dwSize), pBuf,
&dDone, dwCount); &dDone, dwCount);
if (bResult) { if (bResult) {
dev_dbg(&pdx->interface->dev, dev_dbg(&pdx->interface->dev,
......
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