Skip to contentSkip to conversation

Staging: fbtft: Fix code indent should use tabs where possible

PATCH In review Dilek Uzulmez 2 participants 2 messages Mar 2, 2015 – Mar 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: fbtft: Fix code indent should use tabs where possible

Fix checkpatch.pl issues with code indent should use tabs where possible fb_pcd8544.c

---
 drivers/staging/fbtft/fb_pcd8544.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/staging/fbtft/fb_pcd8544.c +14 -14
index 5e08a70..7385c50 100644
@@ -53,38 +53,38 @@ static int init_display(struct fbtft_par *par)
 
 	/* Function set */
 	write_reg(par, 0x21); /* 5:1  1
-	                         2:0  PD - Powerdown control: chip is active
+				 2:0  PD - Powerdown control: chip is active
 							 1:0  V  - Entry mode: horizontal addressing
 							 0:1  H  - Extended instruction set control: extended
 						  */
 
 	/* H=1 Temperature control */
 	write_reg(par, 0x04 | (tc & 0x3)); /*
-	                         2:1  1
-	                         1:x  TC1 - Temperature Coefficient: 0x10
+				 2:1  1
+				 1:x  TC1 - Temperature Coefficient: 0x10
 							 0:x  TC0
 						  */
 
 	/* H=1 Bias system */
 	write_reg(par, 0x10 | (bs & 0x7)); /*
-	                         4:1  1
-	                         3:0  0
+				 4:1  1
+				 3:0  0
 							 2:x  BS2 - Bias System
 							 1:x  BS1
 							 0:x  BS0
-	                      */
+			       */
 
 	/* Function set */
 	write_reg(par, 0x22); /* 5:1  1
-	                         2:0  PD - Powerdown control: chip is active
+				 2:0  PD - Powerdown control: chip is active
 							 1:1  V  - Entry mode: vertical addressing
 							 0:0  H  - Extended instruction set control: basic
 						  */
 
 	/* H=0 Display control */
 	write_reg(par, 0x08 | 4); /*
-	                         3:1  1
-	                         2:1  D  - DE: 10=normal mode
+				 3:1  1
+				 2:1  D  - DE: 10=normal mode
 							 1:0  0
 							 0:0  E
 						  */
@@ -98,14 +98,14 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
 
 	/* H=0 Set X address of RAM */
 	write_reg(par, 0x80); /* 7:1  1
-	                         6-0: X[6:0] - 0x00
-	                      */
+				 6-0: X[6:0] - 0x00
+			      */
 
 	/* H=0 Set Y address of RAM */
 	write_reg(par, 0x40); /* 7:0  0
-	                         6:1  1
-	                         2-0: Y[2:0] - 0x0
-	                      */
+				 6:1  1
+				 2-0: Y[2:0] - 0x0
+			      */
 }
 
 static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 12 lines · Dilek Uzulmez

Fix checkpatch.pl issues with code indent should use tabs where possible fb_pcd8544.c

---
 drivers/staging/fbtft/fb_pcd8544.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
drivers/staging/fbtft/fb_pcd8544.c +0 -0
index 5e08a70..7385c50 100644

drivers/staging/fbtft/fb_pcd8544.c static int init_display(struct fbtft_par *par) · line 59

Quoted 8 lines
drivers/staging/fbtft/fb_pcd8544.c +1 -1
@@ -53,38 +53,38 @@ static int init_display(struct fbtft_par *par)
 
 	/* Function set */
 	write_reg(par, 0x21); /* 5:1  1
-	                         2:0  PD - Powerdown control: chip is active
+				 2:0  PD - Powerdown control: chip is active
 							 1:0  V  - Entry mode: horizontal addressing
 							 0:1  H  - Extended instruction set control: extended
 						  */

This comment still looks horrid, please fix it all at once.

thanks,

greg k-h