From patchwork Tue Aug 30 19:05: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: 9305917 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 1767A601C0 for ; Tue, 30 Aug 2016 19:05:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09ED528D16 for ; Tue, 30 Aug 2016 19:05:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2DC028D1A; Tue, 30 Aug 2016 19:05:28 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 61EF228D16 for ; Tue, 30 Aug 2016 19:05:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752745AbcH3TFS (ORCPT ); Tue, 30 Aug 2016 15:05:18 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36305 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756405AbcH3TFQ (ORCPT ); Tue, 30 Aug 2016 15:05:16 -0400 Received: by mail-wm0-f65.google.com with SMTP id i138so4408204wmf.3; Tue, 30 Aug 2016 12:05: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=i0EWsKkXM3mVrdxwj74atsg6/AiWwR8FIzci77Mnxd0=; b=F00PCLeHOYNfjanx+/3/Z5PJc3yvjFKfcv4S93qHrWYGOMGifOi21freV6Jc99l4dr rN1d+cSYNu6C3JYEobMEXE9YTC32G/AnXRhdq5DqHBA9jjFAw2YlEOnQvYYrjz52V03n fAZ0iQklvO6N9zUnQJkyRkwjvH0JzjTfadHOP6DmylnWii7sKWdKx3pu2oYB/c2BX5go 3u8tbjSuyYNW1dixYKh/DvkIRF8NwPGjMaYHf/PmHK+dBc4JFkJdco0o9y4uvHb9HfMk PwLnt8scU4QgFp6vnIVJKCbxv2fkggxSKeKNYfaB4iETM3jVOBy15H5Nhm6Lh8/jxaD4 20Vg== 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=i0EWsKkXM3mVrdxwj74atsg6/AiWwR8FIzci77Mnxd0=; b=C7/RD2W/6+Iis074PyPXbZ8xyy2wLjxEG6dPJD1NvY1liX162KD4pbyCN0biC6fn3i NptUvT0OHUHeslrh2/orxu7++ISMzcPM28GAlyGtG30dWp+DvsuPaY05yHw7Cu2+D9Il h+DXrp5sTz1HSqxser8R9cKApue6CZQ/QznwQQDuFTU7ZGW1l0XYaf6Ih5pqnsVwje0c xBQrFx0e3UJjCkU/fi8rmkPUTRNA5OSOxUqypIPl86WgrzLAgvg/AMMZUTWGhSkynuF+ GXZQqbaKqHJyzf3WkXajLdGP8SVmptaRvCFMEqo+Wm/6VmkgNgwHQ60aZuiaKM2E3vOx NLRg== X-Gm-Message-State: AE9vXwMbA/NwIQF9RQc1JxBxdwPFh0NNh4HU4K34YumpBphfbdakPVf4CXEJCG3LWkaX/g== X-Received: by 10.28.142.2 with SMTP id q2mr5262326wmd.119.1472583914911; Tue, 30 Aug 2016 12:05:14 -0700 (PDT) Received: from gmail.com ([37.26.146.213]) by smtp.gmail.com with ESMTPSA id jd4sm40878957wjb.6.2016.08.30.12.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2016 12:05:14 -0700 (PDT) Date: Tue, 30 Aug 2016 22:05: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 5/9] staging: sm750fb: fix coding style issues in ddk750_chip.c Message-ID: References: <7011104f5ba6d400b550d2f25d16b1183efa0f35.1472583825.git.mgmoshes@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7011104f5ba6d400b550d2f25d16b1183efa0f35.1472583825.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 line length and block comment * prefix warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index f15800a..13f8a36 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -290,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, N located in 2,15 and M located in 1,255 */