staging: fbtft: fb_tinylcd: align argument with open parenthesis
Subsystems (3)
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
@@ -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
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
Signed-off-by Maria Sheikh <[email protected]>---
drivers/staging/fbtft/fb_tinylcd.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/fbtft/fb_tinylcd.c +1
-2@@ -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
Greg KH
maintainerQuoted 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".Signed-off-by Maria Sheikh <[email protected]>--- drivers/staging/fbtft/fb_tinylcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/fbtft/fb_tinylcd.c +0
-0
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?