From patchwork Sun Sep 4 18:04:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Green X-Patchwork-Id: 9312697 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 3168B60772 for ; Sun, 4 Sep 2016 18:04:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29E7C2888E for ; Sun, 4 Sep 2016 18:04:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EAB128890; Sun, 4 Sep 2016 18:04:18 +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 7F87F2888E for ; Sun, 4 Sep 2016 18:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753981AbcIDSEQ (ORCPT ); Sun, 4 Sep 2016 14:04:16 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36049 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753118AbcIDSEP (ORCPT ); Sun, 4 Sep 2016 14:04:15 -0400 Received: by mail-wm0-f65.google.com with SMTP id l65so2319491wmf.3; Sun, 04 Sep 2016 11:04:15 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=frw3XpCvjQsv+Kr92kSxmWlPNDG2rqTF40Me/HVuiVc=; b=t/OCDSt+q5c8GmwdFpbpAO/thfEbhtXo7VU6cIq2VdkJ1w10Whz7NgtxkkbF9k/ShF iNbbCLDDfOTG6njqnUQv8pSGXne92JoU7mcaNHNs+xUK9Dd6QV1nAS5a3eMvPy4oWKlj WpuAkgXjOVQbX9i2tyrwp6IHF2bQCi/yTIyT3zQnXU86yVSvDgBEGAlxHmKEFkc5Dex4 fOFhasbyd1A+4MoMY2IymjDzPb36Xy5pnkKrOLTKhvRBPdp47H2OBc50guwSW4pQ0Dnp VyNtjB0Lfp8GluMjsZs3538LivK3AqJJJxIdjbYQn9GRbvmVTFiEMRN+hhStXGW5mDCO PiAQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=frw3XpCvjQsv+Kr92kSxmWlPNDG2rqTF40Me/HVuiVc=; b=ec5xYFLYlAxUO1MhrQm2dsJEQqApM7prrSLMj9Q1sAemDdPxxgD6TNvNd6ADK2Munn FNeJvKhov31RZeVTKWoIhDOpuCz57MTgaemCZBMWYgs9YxVWzGZTGRFoGvNQ1/enAVyS P2XTBWNPcrMKDQhiY1YKnYd0g0FvqklbZrybGq2ugt4wocSmqNPmxFnHnZSVAgkKriLs A9TuDxoMxxfjSJyWXZ9Y8NKYC4Uj8H8q8NPSibDy2mZSjI16c2dR5dJ/I3kJ6OciyEG5 FBkFv189IdzJf6sKbR/m4YOGKOGxFTm8S1ADfEALfxv/podP2LiuDYHoTtdklZn5i5Fy D1gA== X-Gm-Message-State: AE9vXwPwgehZvlKqeCl3I0ycObsYkgr869Prw8clRoDc63dGduYQrqUyBKwwFxxKsrd35A== X-Received: by 10.194.221.134 with SMTP id qe6mr30377855wjc.165.1473012254196; Sun, 04 Sep 2016 11:04:14 -0700 (PDT) Received: from gmail.com ([37.26.146.165]) by smtp.gmail.com with ESMTPSA id ml1sm8002449wjb.46.2016.09.04.11.04.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Sep 2016 11:04:13 -0700 (PDT) Date: Sun, 4 Sep 2016 21:04:10 +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 2/2] staging: sm750fb: fix block comment style and spelling issues in ddk750_chip.c Message-ID: References: <523e16874da50855062fcc51b6754e2b9c42b9e5.1472932508.git.mgmoshes@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <523e16874da50855062fcc51b6754e2b9c42b9e5.1472932508.git.mgmoshes@gmail.com> 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 the following warning types: - line length - block comment line * prefix - trailing */ on a separate line found by the checkpatch.pl tool in multiple block comments. Fix a single spelling error in a comment. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 49 +++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 76aaeaa..09fda26 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -144,8 +144,9 @@ static void setMasterClock(unsigned int frequency) return; if (frequency) { - /* Set the frequency to the maximum frequency that the SM750 engine can - run, which is about 190 MHz. */ + /* Set the frequency to the maximum frequency + * that the SM750 engine can run, which is about 190 MHz. + */ if (frequency > MHz(190)) frequency = MHz(190); @@ -242,9 +243,10 @@ int ddk750_initHw(initchip_param_t *pInitParam) setMasterClock(MHz(pInitParam->masterClock)); - /* Reset the memory controller. If the memory controller is not reset in SM750, - the system might hang when sw accesses the memory. - The memory should be resetted after changing the MXCLK. + /* Reset the memory controller. + * If the memory controller is not reset in SM750, + * the system might hang when sw accesses the memory. + * The memory should be resetted after changing the MXCLK. */ if (pInitParam->resetMemory == 1) { reg = PEEK32(MISC_CTRL); @@ -288,21 +290,22 @@ int ddk750_initHw(initchip_param_t *pInitParam) } /* - monk liu @ 4/6/2011: - re-write the calculatePLL function of ddk750. - the original version function does not use some mathematics tricks and shortcut - when it doing the calculation of the best N,M,D combination - I think this version gives a little upgrade in speed - - 750 pll clock formular: - Request Clock = (Input Clock * M )/(N * X) - - Input Clock = 14318181 hz - X = 2 power D - D ={0,1,2,3,4,5,6} - M = {1,...,255} - N = {2,...,15} -*/ + * monk liu @ 4/6/2011: + * re-write the calculatePLL function of ddk750. + * the original version function does not use + * some mathematics tricks and shortcut + * when it doing the calculation of the best N,M,D combination + * I think this version gives a little upgrade in speed + * + * 750 pll clock formular: + * Request Clock = (Input Clock * M )/(N * X) + * + * Input Clock = 14318181 hz + * X = 2 power D + * D ={0,1,2,3,4,5,6} + * M = {1,...,255} + * N = {2,...,15} + */ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) { /* as sm750 register definition, @@ -317,8 +320,10 @@ unsigned int calcPllValue(unsigned int request_orig, pll_value_t *pll) int max_d = 6; if (getChipType() == SM750LE) { - /* SM750LE don't have prgrammable PLL and M/N values to work on. - Just return the requested clock. */ + /* SM750LE don't have + * programmable PLL and M/N values to work on. + * Just return the requested clock. + */ return request_orig; }