[PATCH v3 2/3] staging: xgifb: vb_setmode: fix long line warnings
Kenny Ballou
kballou at devnulllabs.io
Fri Jan 12 19:31:13 UTC 2018
On 2018年01月12日 19:22 GMT, Dan Carpenter wrote:
> On Fri, Jan 12, 2018 at 09:23:08AM -0700, Kenny Ballou wrote:
>> Fix a number of checkpatch warnings in xgfib/vb_setmode.c about
>> line
>> length being over 80 characters.
>>
>> Signed-off-by: Kenny Ballou <kballou at devnulllabs.io>
>> ---
>> @@ -714,7 +715,9 @@ static void XGI_SetCRT1DE(unsigned short
>> ModeIdIndex,
>> data &= 0x7F;
>> xgifb_reg_set(pVBInfo->P3d4, 0x11, data); /* Unlock CRTC
>> */
>> xgifb_reg_set(pVBInfo->P3d4, 0x01, (unsigned short)(tempcx
>> & 0xff));
>> - xgifb_reg_and_or(pVBInfo->P3d4, 0x0b, ~0x0c,
>> + xgifb_reg_and_or(pVBInfo->P3d4,
>> + 0x0b,
>> + 0x0c,
>> (unsigned short)((tempcx & 0x0ff00) >> 10));
>
> 1) You've removed the ~ from ~0xc. 2) This is not a 80
> character
> defect (see your patch description, the patch doesn't match the
> description). 3) The original style is prefered.
>
> regards,
> dan carpenter
I misunderstood the original comment. I'll roll a new version of
the
patch set.
Regards,
-Kenny
More information about the devel
mailing list