From patchwork Thu Mar 26 22:26:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michel von Czettritz X-Patchwork-Id: 6102351 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E8CFBBF90F for ; Thu, 26 Mar 2015 22:26:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0788C20434 for ; Thu, 26 Mar 2015 22:26:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 13F7920412 for ; Thu, 26 Mar 2015 22:26:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbbCZW0m (ORCPT ); Thu, 26 Mar 2015 18:26:42 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35516 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbbCZW0l (ORCPT ); Thu, 26 Mar 2015 18:26:41 -0400 Received: by wibbg6 with SMTP id bg6so6276719wib.0; Thu, 26 Mar 2015 15:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=mr7SftJpyd9dKlRq/PuM411BGy7iETjPa0IaQCzLbew=; b=XmvXeg1O/pk2IvK+H99XDTAemuIsacIS6T91UxTTc47PE6NSQdkdAudwf81Ix3txOW VF1PsQM8ROiuRJlb/SM2XqNVF+/F+49DXlnxNeRdolkxmolTDTXKJxmiB6WNl3b/9hLV tZgmrM7jjXU9xvl6NJdwnqDzpTj+NECRuq80F1r5qGSKBSs1sMhkQflGPKQJOJLf0H9H tFE1Gav2bN9mHcH3QjBhIrZXs/aDVuhIL8ofhB2fK0DN4ZMwwLYi/8jWSq8rIZP9mDRS A/+6g6FjtVSGFogT2FUDuLzB0ZsAe0OxXfoCPwMMdC4qh00+VPVOHjW6NzqhRR1Vk2wx kbzw== X-Received: by 10.180.102.73 with SMTP id fm9mr52483945wib.12.1427408800682; Thu, 26 Mar 2015 15:26:40 -0700 (PDT) Received: from x230-arch (port-92-203-54-78.dynamic.qsc.de. [92.203.54.78]) by mx.google.com with ESMTPSA id l4sm186330wiw.6.2015.03.26.15.26.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Mar 2015 15:26:39 -0700 (PDT) Date: Thu, 26 Mar 2015 23:26:37 +0100 From: Michel von Czettritz To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, kernel-janitors@vger.kernel.org, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org Subject: [PATCH v2 09/12] staging: sm750: blank line after declaration Message-ID: <624153b59166fb9ee199d45a9ac5d57b56622592.1427406762.git.michel.von.czettritz@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes "WARNING: Missing a blank line after declaration" checkpatch.pl warnings. Signed-off-by: Michel von Czettritz --- v2: fix ident --- drivers/staging/sm750fb/sm750.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 6887926..c72d9d6 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