From patchwork Thu Sep 15 20:15:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Green X-Patchwork-Id: 9334683 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 9C278601C2 for ; Thu, 15 Sep 2016 20:15:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8639229B50 for ; Thu, 15 Sep 2016 20:15:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AB8229B52; Thu, 15 Sep 2016 20:15:58 +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=-6.3 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 DA26F29B50 for ; Thu, 15 Sep 2016 20:15:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754236AbcIOUP5 (ORCPT ); Thu, 15 Sep 2016 16:15:57 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33575 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753552AbcIOUP4 (ORCPT ); Thu, 15 Sep 2016 16:15:56 -0400 Received: by mail-wm0-f67.google.com with SMTP id b187so384775wme.0; Thu, 15 Sep 2016 13:15:55 -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=zhh0qoawAKjL4B+qPh4yM4KLAtzqLr81sInMHSjQSFA=; b=eJpjbwqwkjbU/6mOjpdByEpdsXSTpGhTqHWEnP7dGr4j5aksgvqsf9GLu/ylzkeNd2 6UioTaDBX4fagmYi/bhcUjKcwhBp3nWG6aKEnjVMktoKJt6bDaXYeiqvQ0zUj1lDt85S 0VYKJnFwLbEl25+OGwUr5DGk+aotV1DZHw9NZ/ccrnsyUZSm+2g7GR9AKSJa8emLxlXQ OG0neGy7lIUDEceQA1l2Q1BkTkDGzM248k89I7lD3rtOw++IK9tfh2hkSb1DbBE1IQKN 3Vz3UAYuOtN8t8jminf4k3DcLkutDtmCf8XBsUhhwbYeU1+o937NTyAK6bWZ8+G0Z2sg gKlQ== 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=zhh0qoawAKjL4B+qPh4yM4KLAtzqLr81sInMHSjQSFA=; b=JUC6mXVOJ8qioygzDb4lMafuhGYKyf+vnb7ZPPSQ4WERUWtHkQjJ+VLpzA0pWXBtSW WcHcTKGNqwW7Vuqsd/mCGNnub9Q9NFsplyNY2gDamctrKxoGcAqEmjtPiPkQs19h7/pb ksKAqwSLsU2GUb9ezX0sk7sT+F+N366Kwwa0a+ycDkzMtd2+6qx6i3KpOhozQouRWhz2 vpdKqIKK/AqVi4UsQx69DOMcxCQjMJqbCE4plImy22DoJrX8p5OOFa6qviTNegdv4eRz 9KlhQxwSgKbEeEcPYpyxk61YKg8NPAtzgOSmuybfTJtat59eE7mJnRxY+GXzIVvJ0Vmn RPxA== X-Gm-Message-State: AE9vXwM65KDiA9qZSFYxRdbxWq8fTBqF9utRSbhEDciSTkkyc49Xk4gtXhkkBaeT1kh/Yg== X-Received: by 10.28.163.2 with SMTP id m2mr4725426wme.62.1473970554467; Thu, 15 Sep 2016 13:15:54 -0700 (PDT) Received: from gmail.com ([5.102.224.217]) by smtp.gmail.com with ESMTPSA id ab9sm5042698wjc.7.2016.09.15.13.15.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 13:15:53 -0700 (PDT) Date: Thu, 15 Sep 2016 23:15:50 +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: <3073702d63fb782f3b4f3932eb183433f76ce91b.1473970394.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 | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index c1356bb..7cba1ab 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -71,9 +71,10 @@ static void setChipClock(unsigned int frequency) pll.clockType = MXCLK_PLL; /* - * Call calcPllValue() to fill up the other fields for PLL structure. - * Sometime, the chip cannot set up the exact clock required by User. - * Return value from calcPllValue() gives the actual possible clock. + * Call calcPllValue() to fill the other fields of PLL structure. + * Sometime, the chip cannot set up the exact clock + * required by the User. + * Return value of calcPllValue gives the actual possible clock. */ ulActualMxClk = calcPllValue(frequency, &pll); @@ -94,8 +95,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 +306,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 +328,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 */