From patchwork Sun Jun 28 23:44:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Stepanov X-Patchwork-Id: 6686991 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 05E479F3E6 for ; Sun, 28 Jun 2015 23:45:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16FC820544 for ; Sun, 28 Jun 2015 23:45:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 250D220524 for ; Sun, 28 Jun 2015 23:45:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753041AbbF1Xo5 (ORCPT ); Sun, 28 Jun 2015 19:44:57 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:33052 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426AbbF1Xov (ORCPT ); Sun, 28 Jun 2015 19:44:51 -0400 Received: by laar3 with SMTP id r3so44567020laa.0 for ; Sun, 28 Jun 2015 16:44:50 -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=YJqBAOPeugzYRiQrkT5vSJxAM9hhJ11VMDNe63ZYipA=; b=My/Dq74uB3H5lC299UCbuT9e0JjS6qfiKfOnZy01s2dSl+X34rZ2G5GkYMfoRZkkH5 nbZgbDGA7N4tM4ZVcuqhzgvPPfdGqxh77SohTPmZRAcllhbd6ooLsRWoEmqBhpCWdxQ9 VRTOQB5uUj/vJAVP3fGMCKRAg0Ttn7dhsQ3QRIJLK10GvJpP0gbUN/T+ri2GwyDUAoA+ l03cXN7CKW9n/XqYbb4RiZZF2ji0boYIrpBgLxjrO4RVjkQSc8MWaxWiZ3KxJfMDlXgr OupQPtpcCVDCaaJ9hz6QQsIYj+ShB0PljJ5VJ8E5yolcMMAoVaVbk4Q7/ybBGYgITkON 8byA== X-Received: by 10.112.130.68 with SMTP id oc4mr11290810lbb.87.1435535090317; Sun, 28 Jun 2015 16:44:50 -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.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jun 2015 16:44:49 -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 11/11] staging: sm750fb: add required spaces around C operators Date: Mon, 29 Jun 2015 02:44:04 +0300 Message-Id: <1435535044-22042-12-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 Add spaces according to checkpatch.pl messages: "ERROR: spaces required around that '=' (ctx:VxV)" "ERROR: need consistent spacing around '-' (ctx:WxV)" "ERROR: spaces required around that '?' (ctx:VxE)" "ERROR: need consistent spacing around '&' (ctx:VxW)" Signed-off-by: Anatoly Stepanov --- drivers/staging/sm750fb/sm750_hw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/sm750fb/sm750_hw.c b/drivers/staging/sm750fb/sm750_hw.c index a4f0cd0..359165d 100644 --- a/drivers/staging/sm750fb/sm750_hw.c +++ b/drivers/staging/sm750fb/sm750_hw.c @@ -107,7 +107,7 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev) spec_share = container_of(share, struct sm750_share, share); parm = &spec_share->state.initParm; if (parm->chip_clk == 0) - parm->chip_clk = (getChipType() == SM750LE)? + parm->chip_clk = (getChipType() == SM750LE) ? DEFAULT_SM750LE_CHIP_CLOCK : DEFAULT_SM750_CHIP_CLOCK; @@ -327,7 +327,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc, modparm.pixel_clock = ps_to_hz(var->pixclock); modparm.vertical_sync_polarity = (var->sync & FB_SYNC_HOR_HIGH_ACT) ? POS:NEG; modparm.horizontal_sync_polarity = (var->sync & FB_SYNC_VERT_HIGH_ACT) ? POS:NEG; - modparm.clock_phase_polarity = (var->sync& FB_SYNC_COMP_HIGH_ACT) ? POS:NEG; + modparm.clock_phase_polarity = (var->sync & FB_SYNC_COMP_HIGH_ACT) ? POS:NEG; modparm.horizontal_display_end = var->xres; modparm.horizontal_sync_width = var->hsync_len; modparm.horizontal_sync_start = var->xres + var->right_margin; @@ -366,7 +366,7 @@ int hw_sm750_crtc_setMode(struct lynxfb_crtc *crtc, FIELD_VALUE(0, PANEL_FB_WIDTH, OFFSET, fix->line_length)); POKE32(PANEL_WINDOW_WIDTH, - FIELD_VALUE(0, PANEL_WINDOW_WIDTH, WIDTH, var->xres -1)| + FIELD_VALUE(0, PANEL_WINDOW_WIDTH, WIDTH, var->xres - 1)| FIELD_VALUE(0, PANEL_WINDOW_WIDTH, X, var->xoffset)); POKE32(PANEL_WINDOW_HEIGHT, @@ -418,7 +418,7 @@ void hw_sm750_crtc_clear(struct lynxfb_crtc *crtc) int hw_sm750_setColReg(struct lynxfb_crtc *crtc, ushort index, ushort red, ushort green, ushort blue) { - static unsigned int add[]={PANEL_PALETTE_RAM, CRT_PALETTE_RAM}; + static unsigned int add[] = {PANEL_PALETTE_RAM, CRT_PALETTE_RAM}; POKE32(add[crtc->channel] + index*4, (red<<16)|(green<<8)|blue); return 0; } @@ -576,7 +576,7 @@ void hw_sm750_initAccel(struct lynx_share *share) int hw_sm750le_deWait(void) { - int i=0x10000000; + int i = 0x10000000; while (i--) { unsigned int dwVal = PEEK32(DE_STATE2); if ((FIELD_GET(dwVal, DE_STATE2, DE_STATUS) == DE_STATE2_DE_STATUS_IDLE) && @@ -592,7 +592,7 @@ int hw_sm750le_deWait(void) int hw_sm750_deWait(void) { - int i=0x10000000; + int i = 0x10000000; while (i--) { unsigned int dwVal = PEEK32(SYSTEM_CTRL); if ((FIELD_GET(dwVal, SYSTEM_CTRL, DE_STATUS) == SYSTEM_CTRL_DE_STATUS_IDLE) &&