From patchwork Sun Mar 22 23:14:17 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: 6068141 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 758BA9F399 for ; Sun, 22 Mar 2015 23:14:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93AB92022D for ; Sun, 22 Mar 2015 23:14:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6BE420220 for ; Sun, 22 Mar 2015 23:14:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033AbbCVXOV (ORCPT ); Sun, 22 Mar 2015 19:14:21 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:36681 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbbCVXOU (ORCPT ); Sun, 22 Mar 2015 19:14:20 -0400 Received: by wetk59 with SMTP id k59so124429265wet.3; Sun, 22 Mar 2015 16:14:19 -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:mime-version:content-type :content-disposition:user-agent; bh=SNxuIC8DkCSHWRIZP8a1+EvsbyZLsAlOy/bzu2oc0Gw=; b=opKfydgrsjwzdf48tkmscS/29hhskloaGA4ppLx6yH0HEbPLo6OaAhiLsF1XjsGA0G OdBEEFbldUEtsc4B2tRb+WKpUycga0roBWJSK76HQMJ4YfEZvUlShVds53s1MYN+JFKn t7V1I3j+92v2TtXpiOTPp+s+hK8KffJKl6noeS8ZI9+KsBBNJVe6o7uxBHrJt8RJJYhE a+AEGLXPzvKXTMu5AeXThrMLctRISQnI8L1PmO5p8AbBPHk+QyyTHBSx0FiqPTa6Lm5C ovuXCr029qkVbfGfSrOJdYumrjgeFn238afxp10TFYG3PJ2JQ/jGLMueL8bny9v6TJlb 9vtQ== X-Received: by 10.194.94.1 with SMTP id cy1mr176250358wjb.127.1427066059175; Sun, 22 Mar 2015 16:14:19 -0700 (PDT) Received: from x230-arch (port-92-203-13-101.dynamic.qsc.de. [92.203.13.101]) by mx.google.com with ESMTPSA id hl15sm8578804wib.3.2015.03.22.16.14.17 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Mar 2015 16:14:18 -0700 (PDT) Date: Mon, 23 Mar 2015 00:14:17 +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 10/13] staging: sm750: blank line after declaration Message-ID: <20150322231416.GA17270@x230-arch.club.entropia.de> MIME-Version: 1.0 Content-Disposition: inline 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 --- drivers/staging/sm750fb/sm750.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 90dc801..870bf6f 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -61,6 +61,7 @@ static char *g_option = NULL; static inline void myspin_lock(spinlock_t *sl) { struct lynx_share *share; + share = container_of(sl, struct lynx_share, slock); if (share->dual) spin_lock(sl); @@ -69,6 +70,7 @@ static inline void myspin_lock(spinlock_t *sl) static inline void myspin_unlock(spinlock_t *sl) { struct lynx_share *share; + share = container_of(sl, struct lynx_share, slock); if (share->dual) spin_unlock(sl); @@ -172,6 +174,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); @@ -650,6 +653,7 @@ 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) { @@ -1187,6 +1191,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;