Skip to contentSkip to conversation

staging: fbtft: fixes alignment should match open parenthesis

PATCH In review Kloudifold 2 participants 2 messages Mar 10, 2023

Subsystems (2)
lore
Share & tools
lore

Kloudifold

author
#0 lore raw

PATCH 1/1 staging: fbtft: fixes alignment should match open parenthesis

This patch fixes the checks reported by checkpatch.pl for alignment should match open parenthesis

---
 drivers/staging/fbtft/fb_tinylcd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fbtft/fb_tinylcd.c +2 -2
index 9469248f2..7d4741c47 100644
@@ -37,8 +37,8 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0xB3, 0x00);
 	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);
+	write_reg(par, 0xE0, 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);
 	udelay(250);
Signature · 1 line
2.39.2
#1 lore raw
Quoted 13 lines · Kloudifold

This patch fixes the checks reported by checkpatch.pl for alignment should match open parenthesis

---
 drivers/staging/fbtft/fb_tinylcd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/fbtft/fb_tinylcd.c +0 -0
index 9469248f2..7d4741c47 100644

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

Quoted 8 lines
drivers/staging/fbtft/fb_tinylcd.c +2 -2
@@ -37,8 +37,8 @@ static int init_display(struct fbtft_par *par)
 	write_reg(par, 0xB3, 0x00);
 	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);
+	write_reg(par, 0xE0, 0x00, 0x35, 0x33, 0x00, 0x00,
+		  0x00, 0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
 	write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);

The original was obviously deliberate. Just leave it as-is. Checkpatch is not the king of the world.

regards,
dan carpenter