forked from Minki/linux
staging: sm750: comment formating
This patch fixes checkpatch.pl warnings / errors: - "WARNING: please, no space before tabs" - "ERROR: do not use C99 // comments" Signed-off-by: Michel von Czettritz <michel.von.czettritz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f46a04c756
commit
4bd9503d0b
@ -615,7 +615,6 @@ static int lynxfb_ops_setcolreg(unsigned regno, unsigned red,
|
||||
var = &info->var;
|
||||
ret = 0;
|
||||
|
||||
//pr_debug("regno=%d,red=%d,green=%d,blue=%d\n",regno,red,green,blue);
|
||||
if (regno > 256) {
|
||||
pr_err("regno = %d\n", regno);
|
||||
return -EINVAL;
|
||||
@ -688,7 +687,6 @@ static int sm750fb_set_drv(struct lynxfb_par *par)
|
||||
crtc->proc_panDisplay = hw_sm750_pan_display;
|
||||
crtc->clear = hw_sm750_crtc_clear;
|
||||
crtc->line_pad = 16;
|
||||
//crtc->xpanstep = crtc->ypanstep = crtc->ywrapstep = 0;
|
||||
crtc->xpanstep = 8;
|
||||
crtc->ypanstep = 1;
|
||||
crtc->ywrapstep = 0;
|
||||
@ -863,7 +861,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
|
||||
break;
|
||||
} else if (ret == 3) {
|
||||
pr_warn("wanna use default mode\n");
|
||||
// break;
|
||||
/*break;*/
|
||||
} else if (ret == 4) {
|
||||
pr_warn("fall back to any valid mode\n");
|
||||
} else {
|
||||
@ -956,7 +954,6 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
|
||||
|
||||
exit:
|
||||
lynxfb_ops_check_var(var, info);
|
||||
// lynxfb_ops_set_par(info);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@ -1240,7 +1237,6 @@ static void __exit lynxfb_pci_remove(struct pci_dev *pdev)
|
||||
if (share->mtrr.vram_added)
|
||||
mtrr_del(share->mtrr.vram, share->vidmem_start, share->vidmem_size);
|
||||
#endif
|
||||
// pci_release_regions(pdev);
|
||||
|
||||
iounmap(share->pvReg);
|
||||
iounmap(share->pvMem);
|
||||
|
Loading…
Reference in New Issue
Block a user