Skip to contentSkip to conversation

staging: fbtft: Replace spaces to tab

PATCH Superseded Charlie WONG Super 3 participants 5 messages Apr 3, 2015

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

PATCH 1/1 staging: fbtft: Replace spaces to tab

From: Charlie Wong Super <[email protected]>

Spaces at the start of the line, replace the leading space to tabs

---
 drivers/staging/fbtft/fb_st7735r.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fbtft/fb_st7735r.c +4 -4
index 9d87430..8728347 100644
@@ -25,8 +25,8 @@
 #include "fbtft.h"
 
 #define DRVNAME "fb_st7735r"
-#define DEFAULT_GAMMA "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
-                      "0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
+#define DEFAULT_GAMMA	"0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
+			"0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
 
 
 static int default_init_sequence[] = {
@@ -119,9 +119,9 @@ static int set_var(struct fbtft_par *par)
 	/* MADCTL - Memory data access control
 	     RGB/BGR:
 	     1. Mode selection pin SRGB
-	        RGB H/W pin for color filter setting: 0=RGB, 1=BGR
+		RGB H/W pin for color filter setting: 0=RGB, 1=BGR
 	     2. MADCTL RGB bit
-	        RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
+		RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
 	switch (par->info->var.rotate) {
 	case 0:
 		write_reg(par, 0x36, MX | MY | (par->bgr << 3));
Signature · 1 line
1.9.1
#1 lore raw
Quoted 14 lines · Charlie WONG Super

From: Charlie Wong Super <[email protected]>

Spaces at the start of the line, replace the leading space to tabs

---
 drivers/staging/fbtft/fb_st7735r.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fbtft/fb_st7735r.c +0 -0
index 9d87430..8728347 100644

drivers/staging/fbtft/fb_st7735r.c line 28

Quoted 6 lines
drivers/staging/fbtft/fb_st7735r.c +1 -2
@@ -25,8 +25,8 @@
 #include "fbtft.h"
 
 #define DRVNAME "fb_st7735r"
-#define DEFAULT_GAMMA "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
-                      "0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
+#define DEFAULT_GAMMA	"0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \

You don't need a tab after GAMMA.

julia

Quoted 20 lines
drivers/staging/fbtft/fb_st7735r.c +3 -2
+			"0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
 
 
 static int default_init_sequence[] = {
@@ -119,9 +119,9 @@ static int set_var(struct fbtft_par *par)
 	/* MADCTL - Memory data access control
 	     RGB/BGR:
 	     1. Mode selection pin SRGB
-	        RGB H/W pin for color filter setting: 0=RGB, 1=BGR
+		RGB H/W pin for color filter setting: 0=RGB, 1=BGR
 	     2. MADCTL RGB bit
-	        RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
+		RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
 	switch (par->info->var.rotate) {
 	case 0:
 		write_reg(par, 0x36, MX | MY | (par->bgr << 3));
Signature · 1 line
1.9.1
#2 lore raw
Quoted 19 lines · Julia Lawall
Quoted 16 lines · Charlie WONG Super

From: Charlie Wong Super <[email protected]>

Spaces at the start of the line, replace the leading space to tabs

---
  drivers/staging/fbtft/fb_st7735r.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fbtft/fb_st7735r.c +0 -0
index 9d87430..8728347 100644
@@ -25,8 +25,8 @@
  #include "fbtft.h"
 
Quoted 7 lines

drivers/staging/fbtft/fb_st7735r.c line 28

Quoted 4 lines
drivers/staging/fbtft/fb_st7735r.c +1 -2
  #define DRVNAME "fb_st7735r"
-#define DEFAULT_GAMMA "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
-                      "0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
+#define DEFAULT_GAMMA	"0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \

You don't need a tab after GAMMA.

julia

can I use space to make the two line align?

Quoted 21 lines
Quoted 21 lines
drivers/staging/fbtft/fb_st7735r.c +3 -2
+			"0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
 
 
  static int default_init_sequence[] = {
@@ -119,9 +119,9 @@ static int set_var(struct fbtft_par *par)
  	/* MADCTL - Memory data access control
  	     RGB/BGR:
  	     1. Mode selection pin SRGB
-	        RGB H/W pin for color filter setting: 0=RGB, 1=BGR
+		RGB H/W pin for color filter setting: 0=RGB, 1=BGR
  	     2. MADCTL RGB bit
-	        RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
+		RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
  	switch (par->info->var.rotate) {
  	case 0:
  		write_reg(par, 0x36, MX | MY | (par->bgr << 3));
Signature · 1 line
1.9.1
#3 lore raw

PATCH v2 1/1 staging: fbtft: Replace spaces to tab

In reply to Julia Lawall

From: Charlie Wong Super <[email protected]>

Spaces at the start of the line, replace the leading space to tabs

---
Changes in v2:
- After GAMMA, use space to keep aligning with the next line replace former tab(former version use a tap)

 drivers/staging/fbtft/fb_st7735r.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/fbtft/fb_st7735r.c +4 -4
index 9d87430..f652243 100644
@@ -25,8 +25,8 @@
 #include "fbtft.h"
 
 #define DRVNAME "fb_st7735r"
-#define DEFAULT_GAMMA "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
-                      "0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
+#define DEFAULT_GAMMA   "0F 1A 0F 18 2F 28 20 22 1F 1B 23 37 00 07 02 10\n" \
+			"0F 1B 0F 17 33 2C 29 2E 30 30 39 3F 00 07 03 10"
 
 
 static int default_init_sequence[] = {
@@ -119,9 +119,9 @@ static int set_var(struct fbtft_par *par)
 	/* MADCTL - Memory data access control
 	     RGB/BGR:
 	     1. Mode selection pin SRGB
-	        RGB H/W pin for color filter setting: 0=RGB, 1=BGR
+		RGB H/W pin for color filter setting: 0=RGB, 1=BGR
 	     2. MADCTL RGB bit
-	        RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
+		RGB-BGR ORDER color filter panel: 0=RGB, 1=BGR */
 	switch (par->info->var.rotate) {
 	case 0:
 		write_reg(par, 0x36, MX | MY | (par->bgr << 3));
Signature · 1 line
1.9.1
maintainer
#4 lore raw
In reply to Charlie WONG Super
Quoted 8 lines · Charlie WONG Super

From: Charlie Wong Super <[email protected]>

Spaces at the start of the line, replace the leading space to tabs

---
 drivers/staging/fbtft/fb_st7735r.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

The outreachy application period is over, please use the "normal" mailing lists for sending in staging patches. Julia gave a list of how to use scripts/get_maintainer.pl for how to determine who to send the patches to.

I'm not going to be taking any new patches from this mailing list at this point in time, sorry.

greg k-h