Skip to contentSkip to conversation

Staging: sm750fb: Fix C99 Comments

PATCH Superseded Amitoj Kaur Chawla 2 participants 2 messages Apr 1, 2015 – Apr 2, 2015

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: sm750fb: Fix C99 Comments

Used C89 instead of C99 Comments and removed C99 comments performing prints only. Problem found using checkpatch.pl
ERROR: do not use C99 // comments

---
Changes in v2:
-Wrap comment lines at 72 characters

 drivers/staging/sm750fb/ddk750_chip.c | 10 ++--------
 ret.ou                                |  0
 2 files changed, 2 insertions(+), 8 deletions(-)
 create mode 100644 ret.ou
drivers/staging/sm750fb/ddk750_chip.c +2 -8
index b2dc136..cd1508a 100644
@@ -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)
@@ -257,7 +257,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);
@@ -488,7 +488,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;
 }
 
@@ -580,14 +579,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;
ret.ou new file +0 -0
new file mode 100644
index 0000000..e69de29
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 7 lines · Amitoj Kaur Chawla

Used C89 instead of C99 Comments and removed C99 comments performing prints only. Problem found using checkpatch.pl
ERROR: do not use C99 // comments

---
Changes in v2:
-Wrap comment lines at 72 characters

You didn't do that, look above, your changelog is still not linewrapped :(