From patchwork Sun Sep 4 18:03:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Green X-Patchwork-Id: 9312693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A665360772 for ; Sun, 4 Sep 2016 18:03:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EFE6287FF for ; Sun, 4 Sep 2016 18:03:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93D022888F; Sun, 4 Sep 2016 18:03:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5B6F287FF for ; Sun, 4 Sep 2016 18:03:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753118AbcIDSDe (ORCPT ); Sun, 4 Sep 2016 14:03:34 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36836 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752138AbcIDSDd (ORCPT ); Sun, 4 Sep 2016 14:03:33 -0400 Received: by mail-wm0-f68.google.com with SMTP id l65so2317611wmf.3; Sun, 04 Sep 2016 11:03:32 -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-disposition :user-agent; bh=/8d+69T2MGeQtdvlLu3kxqnE+LAZxGeFP1UOW/1ECV0=; b=PSIKMnVNCgNUt5Nh8RiB3SbobF9F93q6CE122uYWVI7TeYuBekMxgEvxT9eQ3ayboX iddT05+3BqKUiOKpgNTRo/7xPa/MhIzi/paNmVPI4A2Ipx3UpNHdv+4Nf9W/s+2ZwZTY irdSZ1d8rnJcAPLwB2hs2F1iK250d4d//5AcZ8tt2GDQBCZwJDLIZU/BKRSkd5H+gDB1 FcJutvU3WPfbjObRE0xPUBGS+ypo0mcjIjTXh+GCqGVfTLQfQPM5gX3cie/DUOzUIvUg GIgm63fNf2cliKSTTzBxsFlA68iU8Ldy06A9L+y5+UoZ5HrHtmCe3Flhm+qKrk6mwzdX kAJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=/8d+69T2MGeQtdvlLu3kxqnE+LAZxGeFP1UOW/1ECV0=; b=QMzKxA3LHrUDDhn12TrCfmYT/J9RboDeJ+Ut9mm+zBfsrmk29ZZ98hZP3+jPydM3L4 /SrIaDd2OT9N4H5EozcZp701PPocJBGWN6lyzPqUg99hSixRF95lE3o6SWhewsZCt+ol hYcb1QrOMBEuETmRqcZW2YanYvY/QzO/QD4qUU7Sswh/QEr0HSQ+96tIx+J2y0dpfwFo dGWyVMbH6LYouKh7oMNqa9/W5eDdDedoQpllvG0V6ysWPtbL6yN9ves/CJjccy9fg/LQ RR2GpS07LL5C7lvNbCpz3Bght1gXuLFegIp7rjSWN3jSHsRneHJS/ulJnow8wS1M93IG Qbhw== X-Gm-Message-State: AE9vXwOETHiBScWkSfSAjkRw5a9Yje/fQuDJcZBtoTFb1jsCbmRhR7JIW46WVsYifoOo2w== X-Received: by 10.194.107.130 with SMTP id hc2mr27249743wjb.7.1473012211440; Sun, 04 Sep 2016 11:03:31 -0700 (PDT) Received: from gmail.com ([37.26.146.165]) by smtp.gmail.com with ESMTPSA id ml1sm7999207wjb.46.2016.09.04.11.03.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 11:03:30 -0700 (PDT) Date: Sun, 4 Sep 2016 21:03:27 +0300 From: Moshe Green To: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: sm750fb: fix line length coding style issues in ddk750_chip.c Message-ID: <523e16874da50855062fcc51b6754e2b9c42b9e5.1472932508.git.mgmoshes@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix multiple line length warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index c1356bb..76aaeaa 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -71,7 +71,7 @@ static void setChipClock(unsigned int frequency) pll.clockType = MXCLK_PLL; /* - * Call calcPllValue() to fill up the other fields for PLL structure. + * Call calcPllValue() to fill the other fields of PLL structure. * Sometime, the chip cannot set up the exact clock required by User. * Return value from calcPllValue() gives the actual possible clock. */ @@ -94,8 +94,8 @@ static void setMemoryClock(unsigned int frequency) if (frequency) { /* - * Set the frequency to the maximum frequency that the DDR Memory can take - * which is 336MHz. + * Set the frequency to the maximum frequency + * that the DDR Memory can take which is 336MHz. */ if (frequency > MHz(336)) frequency = MHz(336); @@ -305,7 +305,9 @@ int ddk750_initHw(initchip_param_t *pInitParam) */ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) { - /* as sm750 register definition, N located in 2,15 and M located in 1,255 */ + /* as sm750 register definition, + * N located in 2,15 and M located in 1,255 + */ int N, M, X, d; int mini_diff; unsigned int RN, quo, rem, fl_quo; @@ -325,12 +327,16 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) request = request_orig / 1000; input = pll->inputFreq / 1000; - /* for MXCLK register , no POD provided, so need be treated differently */ + /* for MXCLK register, + * no POD provided, so need be treated differently + */ if (pll->clockType == MXCLK_PLL) max_d = 3; for (N = 15; N > 1; N--) { - /* RN will not exceed maximum long if @request <= 285 MHZ (for 32bit cpu) */ + /* RN will not exceed maximum long + * if @request <= 285 MHZ (for 32bit cpu) + */ RN = N * request; quo = RN / input; rem = RN % input;/* rem always small than 14318181 */