Skip to content

Commit

Permalink
Staging: sm750fb: Fix C99 Comments
Browse files Browse the repository at this point in the history
Used C89 instead of C99 Comment and removed C99 comments performing prints only.
Problem found using checkpatch.pl
ERROR: do not use C99 // comments

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Amitoj Kaur Chawla authored and Greg Kroah-Hartman committed Apr 3, 2015
1 parent ecfd226 commit 6ad6b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/staging/sm750fb/ddk750_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ logical_chip_type_t getChipType(void)
char physicalRev;
logical_chip_type_t chip;

physicalID = devId750;//either 0x718 or 0x750
physicalID = devId750; /* either 0x718 or 0x750 */
physicalRev = revId750;

if (physicalID == 0x718)
Expand Down Expand Up @@ -256,7 +256,7 @@ int ddk750_initHw(initchip_param_t *pInitParam)

unsigned int ulReg;
#if 0
//move the code to map regiter function.
/* move the code to map regiter function. */
if (getChipType() == SM718) {
/* turn on big endian bit*/
ulReg = PEEK32(0x74);
Expand Down Expand Up @@ -487,7 +487,6 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll)
}
}

//printk("Finally: pll->n[%lu],m[%lu],od[%lu],pod[%lu]\n",pll->N,pll->M,pll->OD,pll->POD);
return ret;
}

Expand Down Expand Up @@ -579,14 +578,9 @@ pll_value_t *pPLL /* Structure to hold the value to be set in PLL */
}

/* Restore input frequency from Khz to hz unit */
// pPLL->inputFreq *= 1000;
ulRequestClk *= 1000;
pPLL->inputFreq = DEFAULT_INPUT_CLOCK; /* Default reference clock */

/* Output debug information */
//DDKDEBUGPRINT((DISPLAY_LEVEL, "calcPllValue: Requested Frequency = %d\n", ulRequestClk));
//DDKDEBUGPRINT((DISPLAY_LEVEL, "calcPllValue: Input CLK = %dHz, M=%d, N=%d, OD=%d, POD=%d\n", pPLL->inputFreq, pPLL->M, pPLL->N, pPLL->OD, pPLL->POD));

/* Return actual frequency that the PLL can set */
ret = calcPLL(pPLL);
return ret;
Expand Down
Empty file added ret.ou
Empty file.

0 comments on commit 6ad6b5e

Please sign in to comment.