From patchwork Sun Mar 22 23:13:06 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: 6068101 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 207AABF90F for ; Sun, 22 Mar 2015 23:13:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B5472022D for ; Sun, 22 Mar 2015 23:13:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6A0A020220 for ; Sun, 22 Mar 2015 23:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751951AbbCVXNK (ORCPT ); Sun, 22 Mar 2015 19:13:10 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:38234 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbbCVXNK (ORCPT ); Sun, 22 Mar 2015 19:13:10 -0400 Received: by wibgn9 with SMTP id gn9so45037928wib.1; Sun, 22 Mar 2015 16:13:08 -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=a3KM+1iYUglWXw8rZHe4AMqunoNtOeBLBP+nMTtVn08=; b=0wM5LtvlRLX+XJgHnnam3YcX68X0bGZ0qsCz4/YLX/JcCMNV6k8ph/3ZXZbXIR41qL knqH4RFadRiczUCB3avbxGwDMsMkTuFPm2TpBrqo97aFWXyw0ZvR1vPuzwvVTbo2OZYX a8Y9A5yD0Zcf0azigxnNy7va29ZI/JZTHknvLRJRqO68hQJKg7bRDmHy44WShSoYjpud jyNDDVfU92vSMH+xxwvOxX90QsEPo8wMgPoV3i+nVuQcyInfn8nQp56BPBOn7NKgboPl MQ75arTKEb7Rfe712AIsoM2ytrHgYybmzhXR1EqJ4ty0lwah8a1vkeA2g9jE/J788oPi z4cQ== X-Received: by 10.194.82.226 with SMTP id l2mr183720093wjy.11.1427065988847; Sun, 22 Mar 2015 16:13:08 -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 jy7sm8534439wid.22.2015.03.22.16.13.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Mar 2015 16:13:08 -0700 (PDT) Date: Mon, 23 Mar 2015 00:13:06 +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 06/13] staging: sm750: newline before { in function decl. Message-ID: <20150322231306.GA17183@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 checkpatch.pl error: "ERROR: open brace '{' following function declarations go on the next line" Signed-off-by: Michel von Czettritz --- drivers/staging/sm750fb/sm750.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index ad0c663..a0a8db7 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -58,7 +58,8 @@ static char *g_option = NULL; /* if not use spin_lock,system will die if user load driver * and immediatly unload driver frequently (dual)*/ -static inline void myspin_lock(spinlock_t *sl) { +static inline void myspin_lock(spinlock_t *sl) +{ struct lynx_share *share; share = container_of(sl, struct lynx_share, slock); if (share->dual) { @@ -66,7 +67,8 @@ static inline void myspin_lock(spinlock_t *sl) { } } -static inline void myspin_unlock(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) {