From patchwork Thu Sep 15 20:16:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Green X-Patchwork-Id: 9334687 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 C5531601C2 for ; Thu, 15 Sep 2016 20:16:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B96F929B51 for ; Thu, 15 Sep 2016 20:16:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE12029B53; Thu, 15 Sep 2016 20:16:23 +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 0CAA329B51 for ; Thu, 15 Sep 2016 20:16:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754178AbcIOUQW (ORCPT ); Thu, 15 Sep 2016 16:16:22 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:32853 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbcIOUQV (ORCPT ); Thu, 15 Sep 2016 16:16:21 -0400 Received: by mail-wm0-f67.google.com with SMTP id b187so386354wme.0; Thu, 15 Sep 2016 13:16:20 -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=k3e5qz3uWx2uZmzeLRSJvv9/7xtjAhQagvOIM2ROlnU=; b=TEyGkRTlCXCSyNRZi188Y62ArnmJjdQ50Xu1o8JNrZEXqJeVGgdu4sPuMaipuWp4Fd JeD/CTlFEpW1eZ9ntJKcYSKz+tZyUJl4y/pBkfqraCnRe3FopqzeGDQ+jHdiN8gkaFm/ ZdZL17nutZRfZ83mn7nu6EvDCdzg6bWg6DpXvR47tvTOHnE8+VmRFukmEhzRWWW90C7Z rYYuaIf2StcJyHts510B2k+ZY/8Y/fenUCkv1ARGPbsyry45K3Y+orL7hgHLg+B57irx oqMmetgsMG0+6X5sJHSbs3g/+en2jjBiwnUBuCasMgRQ1RTpgWeeLHkrg8VflPT6d1QY 0Qmg== 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=k3e5qz3uWx2uZmzeLRSJvv9/7xtjAhQagvOIM2ROlnU=; b=cd/Iytf549kH7dTBNm474DSJeXbDKbz0qrUxC3YkSchMKX2adHDF6ycbrIzq+B88GG UhKtgmkACC+8f6FfUrHL+G/8wTK0w6IAkus12pzmn53wnOJaF2rzdfCtwevbZSR8TQJ6 nYTkK6Vc/INWq7R31rq3ZwxXOxhZoIuNyhoCJ8+01j/nUUm0pbQ3vo+MysIC2d7m1OBO 0HBY19EfZCtbG089M+o2yhgXXFJLE5I+/Oi52XZ1yb1pJI6nOzGthKLNXFiuO6xoABUO 2oic66VH+o9m90avqKYEKQBX5EUMmsZAA0zXxZHATf772aHADR2iy2cdaeIdN/ZpCsom wWwg== X-Gm-Message-State: AE9vXwOv7pPbCqwBk/b83JPPgIeqLgDbxjxuLkxuaaziBLTI7Ja1UUj+TJvyiowLzn+jIQ== X-Received: by 10.194.85.18 with SMTP id d18mr9376571wjz.43.1473970574591; Thu, 15 Sep 2016 13:16:14 -0700 (PDT) Received: from gmail.com ([5.102.224.217]) by smtp.gmail.com with ESMTPSA id jn7sm5037040wjb.5.2016.09.15.13.16.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 13:16:13 -0700 (PDT) Date: Thu, 15 Sep 2016 23:16:11 +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: <06a2b5c2323140695fd2155cd70abeac92e4bf0e.1473970394.git.mgmoshes@gmail.com> References: <3073702d63fb782f3b4f3932eb183433f76ce91b.1473970394.git.mgmoshes@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3073702d63fb782f3b4f3932eb183433f76ce91b.1473970394.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 7cba1ab..f557b6d 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -145,8 +145,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); @@ -243,9 +244,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); @@ -289,21 +291,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, @@ -318,8 +321,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; }