Skip to contentSkip to conversation

staging: xgifb: Fix comment style

PATCH Superseded Janani Ravichandran 2 participants 3 messages Feb 13, 2016 – Feb 15, 2016 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: xgifb: Fix comment style

Fix comments to use trailing */ on separate lines and * on subsequent lines. Found by checkpatch.pl

---
Changes since v1:
* Corrected accidentally modified comment in line 56 in the previous patch

 drivers/staging/xgifb/vb_init.c | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
drivers/staging/xgifb/vb_init.c +9 -7
index 879a7e6..7034921 100644
@@ -57,7 +57,8 @@ XGINew_GetXG20DRAMType(struct xgi_hw_device_info *HwDeviceExtension,
 		data = xgifb_reg_get(pVBInfo->P3d4, 0x48);
 		/* HOTPLUG_SUPPORT */
 		/* for current XG20 & XG21, GPIOH is floating, driver will
-		 * fix DDR temporarily */
+		 * fix DDR temporarily 
+		 */
 		/* DVI read GPIOH */
 		data &= 0x01; /* 1=DDRII, 0=DDR */
 		/* ~HOTPLUG_SUPPORT */
@@ -354,7 +355,8 @@ static void XGINew_DDR2_DefaultRegister(
 	unsigned long P3d4 = Port, P3c4 = Port - 0x10;
 
 	/* keep following setting sequence, each setting in
-	 * the same reg insert idle */
+	 * the same reg insert idle 
+	 */
 	xgifb_reg_set(P3d4, 0x82, 0x77);
 	xgifb_reg_set(P3d4, 0x86, 0x00);
 	xgifb_reg_get(P3d4, 0x86); /* Insert read command for delay */
@@ -698,11 +700,11 @@ static void XGINew_CheckChannel(struct xgi_hw_device_info *HwDeviceExtension,
 		break;
 	case XG42:
 		/*
-		 XG42 SR14 D[3] Reserve
-		 D[2] = 1, Dual Channel
-		 = 0, Single Channel
-
-		 It's Different from Other XG40 Series.
+		 * XG42 SR14 D[3] Reserve
+		 * D[2] = 1, Dual Channel
+		 * = 0, Single Channel
+		 *
+		 * It's Different from Other XG40 Series.
 		 */
 		if (XGINew_CheckFrequence(pVBInfo) == 1) { /* DDRII, DDR2x */
 			pVBInfo->ram_bus = 32; /* 32 bits */
Signature · 1 line
2.5.0
maintainer
#1 lore raw
Quoted 8 lines · Janani Ravichandran

Fix comments to use trailing */ on separate lines and * on subsequent lines. Found by checkpatch.pl

---
Changes since v1:
* Corrected accidentally modified comment in line 56 in the previous patch

Always run your patches through checkpatch so you don't get grumpy emails from maintainers telling you to run your patch through checkpatch...

I can't take this :(

#2 lore raw
Quoted 10 lines · Greg KH
Quoted 8 lines · Janani Ravichandran

Fix comments to use trailing */ on separate lines and * on subsequent lines. Found by checkpatch.pl

---
Changes since v1:
* Corrected accidentally modified comment in line 56 in the previous patch

Quoted 7 lines

Always run your patches through checkpatch so you don't get grumpy emails from maintainers telling you to run your patch through checkpatch...

I can't take this :(

Greg, sorry about that. Just realized I sent you the wrong one. Sent v3

now.

Janani.