diff options
author | Michel von Czettritz <michel.von.czettritz@gmail.com> | 2015-03-26 23:26:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:39:33 +0200 |
commit | 876e5a701f17e447ca6a828b9eda320f1cd835d7 (patch) | |
tree | 22b07a0bf6102108ea2c30d18848cf43f84a0189 /drivers/staging/sm750fb | |
parent | 3318bb5e945f7007842fef4b6c69e559bc6a0e79 (diff) |
staging: sm750: blank line after declaration
This patch fixes "WARNING: Missing a blank line after declaration"
checkpatch.pl warnings.
Signed-off-by: Michel von Czettritz <michel.von.czettritz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb')
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 92668112fdeb..832a4a1782d9 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -156,6 +156,7 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor) if (fbcursor->set & FB_CUR_SETCMAP) { /* get the 16bit color of kernel means */ u16 fg, bg; + fg = ((info->cmap.red[fbcursor->image.fg_color] & 0xf800))| ((info->cmap.green[fbcursor->image.fg_color] & 0xfc00) >> 5)| ((info->cmap.blue[fbcursor->image.fg_color] & 0xf800) >> 11); @@ -269,7 +270,7 @@ static void lynxfb_ops_imageblit(struct fb_info *info, if (image->depth == 1) { if (info->fix.visual == FB_VISUAL_TRUECOLOR || - info->fix.visual == FB_VISUAL_DIRECTCOLOR) { + info->fix.visual == FB_VISUAL_DIRECTCOLOR) { fgcol = ((u32*)info->pseudo_palette)[image->fg_color]; bgcol = ((u32*)info->pseudo_palette)[image->bg_color]; } else { @@ -620,9 +621,12 @@ exit: } -static int lynxfb_ops_setcolreg(unsigned regno, unsigned red, - unsigned green, unsigned blue, - unsigned transp, struct fb_info *info) +static int lynxfb_ops_setcolreg(unsigned regno, + unsigned red, + unsigned green, + unsigned blue, + unsigned transp, + struct fb_info *info) { struct lynxfb_par *par; struct lynxfb_crtc *crtc; @@ -654,9 +658,10 @@ static int lynxfb_ops_setcolreg(unsigned regno, unsigned red, if (info->fix.visual == FB_VISUAL_TRUECOLOR && regno < 256) { u32 val; + if (var->bits_per_pixel == 16 || - var->bits_per_pixel == 32 || - var->bits_per_pixel == 24) { + var->bits_per_pixel == 32 || + var->bits_per_pixel == 24) { val = chan_to_field(red, &var->red); val |= chan_to_field(green, &var->green); val |= chan_to_field(blue, &var->blue); @@ -1189,6 +1194,7 @@ ALLOC_FB: } else { struct lynxfb_par *par; int errno; + pr_info("framebuffer #%d alloc okay\n", fbidx); share->fbinfo[fbidx] = info[fbidx]; par = info[fbidx]->par; @@ -1208,8 +1214,8 @@ ALLOC_FB: errno = register_framebuffer(info[fbidx]); if (errno < 0) { pr_err("Failed to register fb_info #%d. err %d\n", - fbidx, - errno); + fbidx, + errno); if (fbidx == 0) goto err_register0; else |