vidio: Clean up errors in serial.h
PATCH 1/1 vidio: Clean up errors in serial.h
Fix the following errors reported by checkpatch:
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by GuoHua Cheng <[email protected]>
--- include/linux/amba/clcd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/amba/clcd.h +1 -1
@@ -244,7 +244,7 @@ static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var var->xres_virtual = var->xres = (var->xres +15 ) & ~15 ; var->yres_virtual = var->yres = (var->yres +1 ) & ~1 ; -#define CHECK (e,l,h) (var->e < l || var->e > h) +#define CHECK (e, l, h) (var->e < l || var->e > h) if (CHECK(right_margin, (5+1), 256) || /* back porch */ CHECK(left_margin, (5+1), 256) || /* front porch */ CHECK(hsync_len, (5+1), 256) ||
Signature · 1 line
2.17.1
Quoted 5 lines · On Wed, Sep 27, 2023 at 02:32:23PM +0800, [email protected] wrote:
Fix the following errors reported by checkpatch:
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by GuoHua Cheng <[email protected]>
Your subject line is very odd.
Quoted 9 lines
--- include/linux/amba/clcd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/amba/clcd.h +0
-0
include/linux/amba/clcd.h static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var · line 247
Quoted 5 lines
include/linux/amba/clcd.h +1
-1@@ -244,7 +244,7 @@ static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var var->xres_virtual = var->xres = (var->xres +15 ) & ~15 ; var->yres_virtual = var->yres = (var->yres +1 ) & ~1 ; -#define CHECK (e,l,h) (var->e < l || var->e > h) +#define CHECK (e, l, h) (var->e < l || var->e > h)
There is nothing wrong with the original code here, please do not run checkpatch on code that is NOT in drivers/staging/ unless you get the approval of the maintainer to do so.
thanks,
greg k-h