staging: xgifb: move AND operator for logical continuation
PATCH 1/1 staging: xgifb: move AND operator for logical continuation
Fixes the checkpatch issue Logical continuations should be on the previous line.
--- drivers/staging/xgifb/vb_setmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/xgifb/vb_setmode.c +2 -2
@@ -1741,8 +1741,8 @@ static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex,for (i =0 ; i <4 ; i++) {xgifb_reg_and_or (pVBInfo->P3d4,0x31 , ~0x30 , (unsigned short ) (0x10 * i)); -if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) - && (!(pVBInfo->VBInfo & SetInSlaveMode))) { +if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) && + (!(pVBInfo->VBInfo & SetInSlaveMode))) {xgifb_reg_set (pVBInfo->P3c4,0x2e , di_0);xgifb_reg_set (pVBInfo->P3c4,0x2f , di_1); }else {
Signature · 1 line
2.9.2
Quoted 13 lines · Gargi Sharma
Fixes the checkpatch issue Logical continuations should be on the previous line.
Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/xgifb/vb_setmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/xgifb/vb_setmode.c +0
-0
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex, · line 1745
Quoted 7 lines
drivers/staging/xgifb/vb_setmode.c +2
-2@@ -1741,8 +1741,8 @@ static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex,for (i =0 ; i <4 ; i++) {xgifb_reg_and_or (pVBInfo->P3d4,0x31 , ~0x30 , (unsigned short ) (0x10 * i)); -if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) - && (!(pVBInfo->VBInfo & SetInSlaveMode))) { +if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) && + (!(pVBInfo->VBInfo & SetInSlaveMode))) {
It's another issue, but all of those parentheses are rather tiring to look at. The ones outside the ! are not needed. The indentation is also a bit much. There is no need for the argument of && to be aligned with the third argument of xgifb_reg_and_or. At least drop one tab, or even align the two ! expressions. The space is also not needed after (unsigned short) in the line above. This should be done in a series, with one patch per change.
julia
Quoted 13 lines
drivers/staging/xgifb/vb_setmode.c +0
-1xgifb_reg_set (pVBInfo->P3c4,0x2e , di_0);xgifb_reg_set (pVBInfo->P3c4,0x2f , di_1); }else { --2.9.2
--
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/20160913155037.12206-1-gs051095%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi
Quoted 8 lines · Julia Lawall
Quoted 3 lines · Gargi Sharma
Fixes the checkpatch issue Logical continuations should be on the previous line.
Quoted 6 lines
Review
Quoted 6 lines
Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/xgifb/vb_setmode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/staging/xgifb/vb_setmode.c
Quoted 4 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short
Quoted 4 lines
index 50c8ea4..ac27b2c 100644
drivers/staging/xgifb/vb_setmode.c +0
-0@@ -1741,8 +1741,8 @@ static void XGI_SetCRT2ECLK(unsigned short
ModeIdIndex,
Quoted 5 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex,
Quoted 5 lines
drivers/staging/xgifb/vb_setmode.c +0
-2for (i =0 ; i <4 ; i++) {xgifb_reg_and_or (pVBInfo->P3d4,0x31 , ~0x30 , (unsigned short ) (0x10 * i)); -if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) - && (!(pVBInfo->VBInfo & SetInSlaveMode)))
{
Quoted 10 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex, · line 1745
Quoted 2 lines
drivers/staging/xgifb/vb_setmode.c +2
-0+if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) && + (!(pVBInfo->VBInfo & SetInSlaveMode))) {It's another issue, but all of those parentheses are rather tiring to look at. The ones outside the ! are not needed. The indentation is also a bit much. There is no need for the argument of && to be aligned with the third argument of
xgifb_reg_and_or. At least drop one tab, or even align the two ! expressions.
The space is also not needed after (unsigned
short) in the line above.
This check is generated by the checkpatch, and will send another patch addressing this issue.
Quoted 2 lines
This should be done in a series, with one patch
per change.
So should I send a patch-set or separate patches per change?
gargi
Quoted 11 lines
julia
Quoted 8 lines
drivers/staging/xgifb/vb_setmode.c +0
-1xgifb_reg_set (pVBInfo->P3c4,0x2e , di_0);xgifb_reg_set (pVBInfo->P3c4,0x2f , di_1); }else { --2.9.2
--
You received this message because you are subscribed to the Google
Groups "outreachy-kernel" group.
Quoted 1 line
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
Quoted 2 lines
To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/ms
gid/outreachy-kernel/20160913155037.12206-1-gs051095%40gmail.com.
Quoted 2 lines
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
Quoted 39 lines · Gargi Sharma
Hi
Quoted 8 lines · Julia Lawall
Quoted 3 lines · Gargi Sharma
Fixes the checkpatch issue Logical continuations should be on the previous line.
Quoted 6 lines
Review
Quoted 6 lines
Signed-off-by Gargi Sharma <[email protected]>---
drivers/staging/xgifb/vb_setmode.c | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/staging/xgifb/vb_setmode.cQuoted 4 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short
Quoted 4 lines
index 50c8ea4..ac27b2c 100644
drivers/staging/xgifb/vb_setmode.c +0
-0@@ -1741,8 +1741,8 @@ static void XGI_SetCRT2ECLK(unsigned shortModeIdIndex,
Quoted 5 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex,
Quoted 5 lines
drivers/staging/xgifb/vb_setmode.c +0
-2for (i = 0; i < 4; i++) { xgifb_reg_and_or(pVBInfo->P3d4, 0x31, ~0x30, (unsigned short) (0x10 * i)); - if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) - && (!(pVBInfo->VBInfo & SetInSlaveMode))){
Quoted 8 lines
drivers/staging/xgifb/vb_setmode.c static void XGI_SetCRT2ECLK(unsigned short ModeIdIndex, · line 1745
Quoted 2 lines
drivers/staging/xgifb/vb_setmode.c +2
-0+ if ((!(pVBInfo->VBInfo & XGI_SetCRT2ToLCDA)) && + (!(pVBInfo->VBInfo & SetInSlaveMode))) {It's another issue, but all of those parentheses are rather tiring to look at. The ones outside the ! are not needed. The indentation is also a bit much. There is no need for the argument of && to be aligned with the third argument of xgifb_reg_and_or. At least drop one tab, or even align the two ! expressions. >The space is also not needed after (unsigned>
short) in the line above.
Quoted 7 lines
This check is generated by the checkpatch, and will send another patch addressing this issue.
Quoted 2 lines
This should be done in a series, with one patch
per change.So should I send a patch-set or separate patches per change?
A patch set: 1/3, 2/3, 3/3. Greg will want to know in what order to apply them, if they touch the same file.
julia
Quoted 34 lines
gargi
Quoted 11 lines
julia
Quoted 8 lines
drivers/staging/xgifb/vb_setmode.c +0
-1xgifb_reg_set(pVBInfo->P3c4, 0x2e, di_0); xgifb_reg_set(pVBInfo->P3c4, 0x2f, di_1); } else { --2.9.2
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
Quoted 2 lines
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20160913155037.12206-1-gs051095%40gmail.com.
Quoted 2 lines
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
--
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/CAOCi2DEQhf6AeNByf7rOSud qsGaYr4%3DSVM0Q-DAnRg4R7AqX_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.