staging: fbtft: Fix line over 80 characters warning
Subsystems (2)
PATCH 1/1 staging: fbtft: Fix line over 80 characters warning
WARNING:Removed line over 80 characters warning
checkpatch.pl warning
Signed-off-by Gamze POLAT <[email protected]>
--- drivers/staging/fbtft/fb_s6d02a1.c | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-)
drivers/staging/fbtft/fb_s6d02a1.c +24 -12
@@ -33,20 +33,27 @@ static int default_init_sequence[] = {-1 ,0xfc ,0x5a ,0x5a , --1 ,0xfa ,0x02 ,0x1f ,0x00 ,0x10 ,0x22 ,0x30 ,0x38 ,0x3A ,0x3A ,0x3A ,0x3A ,0x3A ,0x3d ,0x02 ,0x01 , + -1, 0xfa, 0x02, 0x1f, 0x00, 0x10, 0x22, 0x30, 0x38, 0x3A, 0x3A, 0x3A, 0x + 3A, 0x3A, 0x3d, 0x02, 0x01, --1 ,0xfb ,0x21 ,0x00 ,0x02 ,0x04 ,0x07 ,0x0a ,0x0b ,0x0c ,0x0c ,0x16 ,0x1e ,0x30 ,0x3f ,0x01 ,0x02 , + -1, 0xfb, 0x21, 0x00, 0x02, 0x04, 0x07, 0x0a, 0x0b, 0x0c, 0x0c, 0x16, 0x +1e ,0x30 ,0x3f ,0x01 ,0x02 ,/* power setting sequence */ --1 ,0xfd ,0x00 ,0x00 ,0x00 ,0x17 ,0x10 ,0x00 ,0x01 ,0x01 ,0x00 ,0x1f ,0x1f , + -1, 0xfd, 0x00, 0x00, 0x00, 0x17, 0x10, 0x00, 0x01, 0x01, 0x00, 0x1f, 0x +1f , --1 ,0xf4 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x3f ,0x3f ,0x07 ,0x00 ,0x3C ,0x36 ,0x00 ,0x3C ,0x36 ,0x00 , + -1, 0xf4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x +36 ,0x00 ,0x3C ,0x36 ,0x00 , --1 ,0xf5 ,0x00 ,0x70 ,0x66 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x6d ,0x66 ,0x06 , + -1, 0xf5, 0x00, 0x70, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x +6d ,0x66 ,0x06 , --1 ,0xf6 ,0x02 ,0x00 ,0x3f ,0x00 ,0x00 ,0x00 ,0x02 ,0x00 ,0x06 ,0x01 ,0x00 , + -1, 0xf6, 0x02, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x01, 0x +00 , --1 ,0xf2 ,0x00 ,0x01 ,0x03 ,0x08 ,0x08 ,0x04 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x01 ,0x00 ,0x00 ,0x04 ,0x08 ,0x08 , + -1, 0xf2, 0x00, 0x01, 0x03, 0x08, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x +00 ,0x01 ,0x00 ,0x00 ,0x04 ,0x08 ,0x08 , -1, 0xf8, 0x11,
@@ -66,7 +73,8 @@ static int default_init_sequence[] = {-1 ,0xf3 ,0x00 ,0x0f ,-2 ,50 , --1 ,0xf4 ,0x00 ,0x04 ,0x00 ,0x00 ,0x00 ,0x3f ,0x3f ,0x07 ,0x00 ,0x3C ,0x36 ,0x00 ,0x3C ,0x36 ,0x00 , + -1, 0xf4, 0x00, 0x04, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x +36 ,0x00 ,0x3C ,0x36 ,0x00 ,-2 ,50 , -1, 0xf3, 0x00, 0x1f,
@@ -77,9 +85,11 @@ static int default_init_sequence[] = {-1 ,0xf3 ,0x00 ,0xff ,-2 ,50 , --1 ,0xfd ,0x00 ,0x00 ,0x00 ,0x17 ,0x10 ,0x00 ,0x00 ,0x01 ,0x00 ,0x16 ,0x16 , + -1, 0xfd, 0x00, 0x00, 0x00, 0x17, 0x10, 0x00, 0x00, 0x01, 0x00, 0x16, 0x +16 , --1 ,0xf4 ,0x00 ,0x09 ,0x00 ,0x00 ,0x00 ,0x3f ,0x3f ,0x07 ,0x00 ,0x3C ,0x36 ,0x00 ,0x3C ,0x36 ,0x00 , + -1, 0xf4, 0x00, 0x09, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x +36 ,0x00 ,0x3C ,0x36 ,0x00 , /* initializing sequence */
@@ -90,13 +100,15 @@ static int default_init_sequence[] = {-1 ,0x3a ,0x05 ,/* gamma setting sequence */ --1 ,0x26 ,0x01 ,/* preset gamma curves, possible values 0x01, 0x02, 0x04, 0x08 */ +-1 ,0x26 ,0x01 ,/* preset gamma curves, possible values 0x01, 0x02, 0x04 +, 0x08 */ -2 ,150 ,-1 ,0x29 ,-1 ,0x2c ,/* end marker */ --3 + - +3 };
Signature · 1 line
2.1.0
Quoted 13 lines · Gamze POLAT
WARNING:Removed line over 80 characters warning
checkpatch.pl warningSigned-off-by Gamze POLAT <[email protected]>--- drivers/staging/fbtft/fb_s6d02a1.c | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-)drivers/staging/fbtft/fb_s6d02a1.c +0
-0
drivers/staging/fbtft/fb_s6d02a1.c static int default_init_sequence[] = { · line 37
Quoted 6 lines
drivers/staging/fbtft/fb_s6d02a1.c +2
-1@@ -33,20 +33,27 @@ static int default_init_sequence[] = {-1 ,0xfc ,0x5a ,0x5a , - -1, 0xfa, 0x02, 0x1f, 0x00, 0x10, 0x22, 0x30, 0x38, 0x3A, 0x3A, 0x3A, 0x3A, 0x3A, 0x3d, 0x02, 0x01, + -1, 0xfa, 0x02, 0x1f, 0x00, 0x10, 0x22, 0x30, 0x38, 0x3A, 0x3A, 0x3A, 0x + 3A, 0x3A, 0x3d, 0x02, 0x01,
You should not split a number in the middle like this. It would be better anyway to split a bit before 80 characters.
Quoted 53 lines
drivers/staging/fbtft/fb_s6d02a1.c +18
-9--1 ,0xfb ,0x21 ,0x00 ,0x02 ,0x04 ,0x07 ,0x0a ,0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 , -1, 0xf8, 0x11,@@ -66,7 +73,8 @@ static int default_init_sequence[] = {-1 ,0xf3 ,0x00 ,0x0f ,-2 ,50 , --1 ,0xf4 ,0x00 ,0x04 ,0x00 ,0x00 ,0x00 ,0x3f ,0x3f ,0x07 ,0x00 ,0x3C ,0x36 ,0x00 ,0x3C ,0x36 ,0x00 , + -1, 0xf4, 0x00, 0x04, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x +36 ,0x00 ,0x3C ,0x36 ,0x00 ,-2 ,50 , -1, 0xf3, 0x00, 0x1f,@@ -77,9 +85,11 @@ static int default_init_sequence[] = {-1 ,0xf3 ,0x00 ,0xff ,-2 ,50 , --1 ,0xfd ,0x00 ,0x00 ,0x00 ,0x17 ,0x10 ,0x00 ,0x00 ,0x01 ,0x00 ,0x16 ,0x16 , + -1, 0xfd, 0x00, 0x00, 0x00, 0x17, 0x10, 0x00, 0x00, 0x01, 0x00, 0x16, 0x +16 , --1 ,0xf4 ,0x00 ,0x09 ,0x00 ,0x00 ,0x00 ,0x3f ,0x3f ,0x07 ,0x00 ,0x3C ,0x36 ,0x00 ,0x3C ,0x36 ,0x00 , + -1, 0xf4, 0x00, 0x09, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0x07, 0x00, 0x3C, 0x +36 ,0x00 ,0x3C ,0x36 ,0x00 , /* initializing sequence */
drivers/staging/fbtft/fb_s6d02a1.c static int default_init_sequence[] = { · line 104
Quoted 6 lines
drivers/staging/fbtft/fb_s6d02a1.c +2
-1@@ -90,13 +100,15 @@ static int default_init_sequence[] = {-1 ,0x3a ,0x05 ,/* gamma setting sequence */ - -1, 0x26, 0x01, /* preset gamma curves, possible values 0x01, 0x02, 0x04, 0x08 */ + -1, 0x26, 0x01, /* preset gamma curves, possible values 0x01, 0x02, 0x04 +, 0x08 */
In English one never puts a space/newline before punctuation, only after.
julia
Quoted 21 lines
drivers/staging/fbtft/fb_s6d02a1.c +2
-1-2 ,150 ,-1 ,0x29 ,-1 ,0x2c ,/* end marker */ - -3 + - + 3 };Signature · 8 lines
2.1.0 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424382682-7094-1-git-send-email-gamzepolat94%40gmail.com. For more options, visit https://groups.google.com/d/optout.