From patchwork Wed Jul 15 05:55:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Shahu X-Patchwork-Id: 6791891 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 704C79F2E8 for ; Wed, 15 Jul 2015 05:55:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93B7A20665 for ; Wed, 15 Jul 2015 05:55:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2069205DD for ; Wed, 15 Jul 2015 05:55:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbbGOFzf (ORCPT ); Wed, 15 Jul 2015 01:55:35 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36395 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752038AbbGOFze (ORCPT ); Wed, 15 Jul 2015 01:55:34 -0400 Received: by pachj5 with SMTP id hj5so18069175pac.3 for ; Tue, 14 Jul 2015 22:55:34 -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=BnWjsc818Yb5EW8FldFuJ2zwws/K7MG0bJVMUHhRWAc=; b=xFjSm7k/HaXWdMjwJGnAPqaRPx9lG3EIXkheTx47mUly8cRl4DE03qwMeAEhtAYxmH QjsIuLyVhnQPAEXe2aQAXMOW/gsVJwBPU7cmRIY39TjJ60tjMHQ3G06iUXAd3m0ajPbX IHzXvvsusKLpyJ/12DH8VeDVNfuu9PFZ2WiIx0rXebGKf/6ZEVMCm9ZdVIWMgdGkV+sr RATPYMYWBdAjZGLsDPRV72L3dGyU2S+quN3lA9r5kFQgwnJVjBa3OAk1nI+WvarIxcZ/ UASXxB80O0RR1l+F4ehsPSeeuoaPYs4g4ukQaId5/W+FQm1ay8nqNQwSXR3juu5cZmny iMPA== X-Received: by 10.68.109.37 with SMTP id hp5mr4627520pbb.63.1436939734309; Tue, 14 Jul 2015 22:55:34 -0700 (PDT) Received: from sunil.audience.local ([202.131.115.146]) by smtp.gmail.com with ESMTPSA id k5sm3236111pdo.48.2015.07.14.22.55.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 22:55:33 -0700 (PDT) From: Sunil Shahu To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, sudip@vectorindia.org Subject: [PATCH v2] staging: sm750fb: ddk750_chip: use consistent spacing Date: Wed, 15 Jul 2015 11:25:19 +0530 Message-Id: <1436939719-386-1-git-send-email-shshahu@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20150714130819.GA18186@sudip-PC> References: <20150714130819.GA18186@sudip-PC> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.2 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 Remove all checkpatch error by using consistent spacing. Signed-off-by: Sunil Shahu --- drivers/staging/sm750fb/ddk750_chip.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index f4975d2..de682dc 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -268,7 +268,7 @@ int ddk750_initHw(initchip_param_t *pInitParam) #endif - if (pInitParam->powerMode != 0 ) + if (pInitParam->powerMode != 0) pInitParam->powerMode = 0; setPowerMode(pInitParam->powerMode); @@ -464,17 +464,17 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) RN = N * request; quo = RN / input; rem = RN % input;/* rem always small than 14318181 */ - fl_quo = (rem * 10000 /input); + fl_quo = (rem * 10000 / input); for (d = xcnt - 1; d >= 0; d--) { X = xparm[d].value; M = quo*X; M += fl_quo * X / 10000; /* round step */ - M += (fl_quo*X % 10000)>5000?1:0; + M += (fl_quo * X % 10000) > 5000 ? 1 : 0; if (M < 256 && M > 0) { unsigned int diff; - tmpClock = pll->inputFreq *M / N / X; + tmpClock = pll->inputFreq * M / N / X; diff = absDiff(tmpClock, request_orig); if (diff < miniDiff) { pll->M = M; @@ -599,9 +599,9 @@ unsigned int formatPllReg(pll_value_t *pPLL) On returning a 32 bit number, the value can be applied to any PLL in the calling function. */ ulPllReg = - FIELD_SET( 0, PANEL_PLL_CTRL, BYPASS, OFF) - | FIELD_SET( 0, PANEL_PLL_CTRL, POWER, ON) - | FIELD_SET( 0, PANEL_PLL_CTRL, INPUT, OSC) + FIELD_SET(0, PANEL_PLL_CTRL, BYPASS, OFF) + | FIELD_SET(0, PANEL_PLL_CTRL, POWER, ON) + | FIELD_SET(0, PANEL_PLL_CTRL, INPUT, OSC) #ifndef VALIDATION_CHIP | FIELD_VALUE(0, PANEL_PLL_CTRL, POD, pPLL->POD) #endif