Skip to contentSkip to conversation

staging: fbtft: fb_tinylcd: align argument with open parenthesis

PATCH In review Maria Sheikh 3 participants 3 messages Oct 31 – Nov 20

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

PATCH 1/1 staging: fbtft: fb_tinylcd: align argument with open parenthesis

Align the continuation line of the write_reg() call with the open parenthesis to fix the checkpatch.pl check "Alignment should match open parenthesis".

---
 drivers/staging/fbtft/fb_tinylcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fb_tinylcd.c +1 -1
index afa8f1c740c5..d58b1247262b 100644
@@ -38,7 +38,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0xE5, 0x00);
 	write_reg(par, 0xF0, 0x36, 0xA5, 0x53);
 	write_reg(par, 0xE0, 0x00, 0x35, 0x33, 0x00, 0x00, 0x00,
-		       0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
+		  0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
 	write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);
 	write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
 	fsleep(250);
Signature · 1 line
2.53.0
#1 lore raw
Quoted 7 lines · Maria Sheikh

Align the continuation line of the write_reg() call with the open parenthesis to fix the checkpatch.pl check "Alignment should match open parenthesis".

I believe that this patch had already been proposed by another applicant and rejected. Please check the mailing list archives before sending a patch.

Julia

Quoted 23 lines

---
drivers/staging/fbtft/fb_tinylcd.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fb_tinylcd.c +1 -2
index afa8f1c740c5..d58b1247262b 100644
@@ -38,7 +38,7 @@ static int init_display(struct fbtft_par *par)
   write_reg(par, 0xE5, 0x00);
   write_reg(par, 0xF0, 0x36, 0xA5, 0x53);
   write_reg(par, 0xE0, 0x00, 0x35, 0x33, 0x00, 0x00, 0x00,
-               0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
+          0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
   write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);
   write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
   fsleep(250);
--

2.53.0

maintainer
#2 lore raw
In reply to Maria Sheikh
Quoted 14 lines · Maria Sheikh

Align the continuation line of the write_reg() call with the open parenthesis to fix the checkpatch.pl check "Alignment should match open parenthesis".

---
 drivers/staging/fbtft/fb_tinylcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/fbtft/fb_tinylcd.c +0 -0
index afa8f1c740c5..d58b1247262b 100644

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

Quoted 5 lines
drivers/staging/fbtft/fb_tinylcd.c +1 -1
@@ -38,7 +38,7 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0xE5, 0x00);
 	write_reg(par, 0xF0, 0x36, 0xA5, 0x53);
 	write_reg(par, 0xE0, 0x00, 0x35, 0x33, 0x00, 0x00, 0x00,
-		       0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
+		  0x00, 0x35, 0x33, 0x00, 0x00, 0x00);

No, the original code here is correct, right?