From patchwork Tue Jul 14 06:20:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Shahu X-Patchwork-Id: 6783921 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 66D729F2E8 for ; Tue, 14 Jul 2015 06:21:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7FF1A2070C for ; Tue, 14 Jul 2015 06:21:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4BB820668 for ; Tue, 14 Jul 2015 06:21:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbbGNGVH (ORCPT ); Tue, 14 Jul 2015 02:21:07 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:36818 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751317AbbGNGVG (ORCPT ); Tue, 14 Jul 2015 02:21:06 -0400 Received: by pacgq4 with SMTP id gq4so7260pac.3 for ; Mon, 13 Jul 2015 23:21:04 -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; bh=yPMM1GP572zSm4GSh6KnG4XI+rj6umD4JAFd2u47gMo=; b=gj6AErA0Q/mw/EIZtH6BTqhDEnqTzFQ+XDokyCGlNamUH6V+5Fsb5qraMZtjlmHpuT GxfjM6bvfIU5BRyDL71ucoxmgI5le8c6/KXipw73sDr9Wpnxww99RASQzuqv83j2YNdy V8g7oAF2POk3S/mVgsxs5AcoBOx+8MhV1sFysCjHsce1kZWfTTb0XYTnbLztJajeN2Su +0WgY33R7/FTMuRc9YmS4d0SyqMdZhlEiCeYAPHHDkyKOXcEg/xxO+HtlsHPPZxpyI42 ru20Y5epxmoiSHqXMWDVXPdA0rspgqUDZ5nAvARkNZQma/6eQ1NvSv6+cLWGGblnPgSK Qu+Q== X-Received: by 10.70.14.36 with SMTP id m4mr46065560pdc.117.1436854864833; Mon, 13 Jul 2015 23:21:04 -0700 (PDT) Received: from sunil.audience.local ([202.131.115.146]) by smtp.gmail.com with ESMTPSA id f1sm8791pdp.39.2015.07.13.23.21.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 23:21:04 -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] staging: sm750fb: ddk750_chip: use consistent spacing Date: Tue, 14 Jul 2015 11:50:57 +0530 Message-Id: <1436854857-12622-1-git-send-email-shshahu@gmail.com> X-Mailer: git-send-email 1.9.1 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..1564c04 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