From patchwork Sun Jun 28 23:44:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Stepanov X-Patchwork-Id: 6686951 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 3122EC05AC for ; Sun, 28 Jun 2015 23:44:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3542020524 for ; Sun, 28 Jun 2015 23:44:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43C7B20544 for ; Sun, 28 Jun 2015 23:44:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752812AbbF1Xou (ORCPT ); Sun, 28 Jun 2015 19:44:50 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:34330 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426AbbF1Xos (ORCPT ); Sun, 28 Jun 2015 19:44:48 -0400 Received: by lagx9 with SMTP id x9so106567694lag.1 for ; Sun, 28 Jun 2015 16:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2/SBesu5+VnNfEMER2U5sqUSHdzBz7cAqwRuJihoDb0=; b=XJNshWFoL5mzVQI1hhazZGNoANr0WnP5mSENxUXhEnHcDbwNHLGqEga3VMR+HvWMjI I0u+3tS5VwVFyJO6QW6VLJOAMIjke6CB6is/enEYzbbVdzC4Nvk2FRU5J7EuLreNe51J he5qDIaksyWh+nqoLJ90FPSk116aX3a/cjV33UTX8IjeSrw4LibFhuTP4a5MloaBD7wo DMS9JvSFkZWnONCaCdD/5rn2ixAf+7EDDTT/L0S4HXCwn8t9/6ca4CjULgDHvmYxhLXq 5Q6/SiBDNiCl9hIJVMxtcyU8B7XE7TggKEH4BYdRxUpPJH3HUzUd/sedeXGR6uBZkFxY e+bw== X-Received: by 10.112.92.99 with SMTP id cl3mr11765694lbb.34.1435535087291; Sun, 28 Jun 2015 16:44:47 -0700 (PDT) Received: from localhost.localdomain (37-145-237-243.broadband.corbina.ru. [37.145.237.243]) by mx.google.com with ESMTPSA id t15sm10210918lbk.0.2015.06.28.16.44.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jun 2015 16:44:46 -0700 (PDT) From: Anatoly Stepanov To: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, Anatoly Stepanov Subject: [PATCH 07/11] staging: sm750fb: fix indentation in 'else' statements Date: Mon, 29 Jun 2015 02:44:00 +0300 Message-Id: <1435535044-22042-8-git-send-email-drivengroove@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1435535044-22042-1-git-send-email-drivengroove@gmail.com> References: <1435535044-22042-1-git-send-email-drivengroove@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Fix indentation according to checkpatch.pl message: "ERROR: space required after that close brace '}'" Signed-off-by: Anatoly Stepanov --- drivers/staging/sm750fb/sm750_hw.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c index 4dded62..9de2532 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -55,7 +55,7 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev) pr_err("mmio failed\n"); ret = -EFAULT; goto exit; - }else{ + } else { pr_info("mmio virtual addr = %p\n", share->pvReg); } @@ -89,7 +89,7 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev) pr_err("Map video memory failed\n"); ret = -EFAULT; goto exit; - }else{ + } else { pr_info("video memory vaddr = %p\n", share->pvMem); } exit: @@ -140,7 +140,7 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev) FIELD_SET(PEEK32(SYSTEM_CTRL), SYSTEM_CTRL, DPMS, VNHN)); - }else{ + } else { POKE32(MISC_CTRL, FIELD_SET(PEEK32(MISC_CTRL), MISC_CTRL, @@ -163,7 +163,7 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev) spec_share->state.pnltype)); break; } - }else{ + } else { /* for 750LE ,no DVI chip initilization makes Monitor no signal */ /* Set up GPIO for software I2C to program DVI chip in the Xilinx SP605 board, in order to have video signal. @@ -232,7 +232,7 @@ int hw_sm750_output_setMode(struct lynxfb_output *output, if (output->paths & sm750_crt) dispSet |= do_CRT_PRI; - }else{ + } else { pr_info("secondary channel\n"); if (output->paths & sm750_panel) dispSet |= do_LCD1_SEC; @@ -241,7 +241,7 @@ int hw_sm750_output_setMode(struct lynxfb_output *output, } ddk750_setLogicalDispOut(dispSet); - }else{ + } else { /* just open DISPLAY_CONTROL_750LE register bit 3:0*/ u32 reg; reg = PEEK32(DISPLAY_CONTROL_750LE); @@ -385,7 +385,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc, PANEL_DISPLAY_CTRL, FORMAT, (var->bits_per_pixel >> 4) )); - }else{ + } else { /* not implemented now */ POKE32(CRT_FB_ADDRESS, crtc->oScreen); reg = var->xres * (var->bits_per_pixel >> 3); @@ -557,7 +557,7 @@ void hw_sm750_initAccel(struct lynx_share *share) reg = FIELD_SET(reg, DE_STATE1, DE_ABORT, OFF); POKE32(DE_STATE1, reg); - }else{ + } else { /* engine reset */ reg = PEEK32(SYSTEM_CTRL); reg = FIELD_SET(reg, SYSTEM_CTRL, DE_ABORT, ON);