From patchwork Sun Oct 2 05:48:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moshe Green X-Patchwork-Id: 9359559 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 2DD886075E for ; Sun, 2 Oct 2016 05:48:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 070F628B86 for ; Sun, 2 Oct 2016 05:48:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB60028BA3; Sun, 2 Oct 2016 05:48:40 +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 B39E828B86 for ; Sun, 2 Oct 2016 05:48:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750953AbcJBFsi (ORCPT ); Sun, 2 Oct 2016 01:48:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33529 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbcJBFsh (ORCPT ); Sun, 2 Oct 2016 01:48:37 -0400 Received: by mail-wm0-f68.google.com with SMTP id p138so9472425wmb.0; Sat, 01 Oct 2016 22:48:36 -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=XC8HnidswSIzYQjUxjSsHYP+eOJRjDSRKLwU135i1WI=; b=xnK6K6etd5yxSTLY+YM6pG/tyvGj/uglosq4ISwlikKJ353ZsFdL8SzoMMr3oIjK0C KoxZo9uVro7A5w/VU5XVF8rPokeC577x6Lh050mCehOCrFqzdOOKVdTCdSLAi5bfnvSP LRd0DikgCfwwQ5ZtAhY91rf63/UPUFZCquYSpBhGJM30LivAM0fcwEML7vlk1w736kGx zOwtj0/OXQDTYpt6b0+ToeVmoD7RRwRQO8tJmy4MCzwRS+kvieVDPElFNME6OWhXAxJn dIapH3GLN2iOjqpXmwDjmeXcQNVxM+ZHM/SXTSFJADU/dG4C460ouc5ixfpdlGgJKFRW aBpQ== 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=XC8HnidswSIzYQjUxjSsHYP+eOJRjDSRKLwU135i1WI=; b=ElLP/WvN/UtyJ0e8nwzvjKVqJPcrWs+5QPl8GVydearwWjKDPNto2eFsIpAwQ9tDTB RLlsWVogfhf138HU1+xgCr99m1c+tQ/e6cq1wH3xMEM5wRGP++0ypfxkmI1m4xI4hKe+ LNclmmeDWhPbW15AgDRUuSVMnYyCeiJ6AFt0gEBfO31DhSOPTOBpEzD32Q3d2Pphq++d siBfmW9QJ+hBxFt0hW7Tun/twKn4Xw9tZ62tqVu0X/mMjE+3f3CjezqxNcl/9laondqz ihpYcahG07ZkccH6KhNztQ1JdMW2TaHb6WZ7VpTcp2dg8BjTPEiSrgyGcYnhwCMN/lUv 4ThQ== X-Gm-Message-State: AA6/9RlbOCKTGIrQ2p8PYSj6OiDlchidX/VZgGoSyYCRoj9NPmOIFRBnpd4kbr1KQns/ag== X-Received: by 10.195.11.8 with SMTP id ee8mr11976463wjd.82.1475387315596; Sat, 01 Oct 2016 22:48:35 -0700 (PDT) Received: from gmail.com ([5.102.207.83]) by smtp.gmail.com with ESMTPSA id r2sm12315075wmf.14.2016.10.01.22.48.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Oct 2016 22:48:34 -0700 (PDT) Date: Sun, 2 Oct 2016 08:48:32 +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] staging: sm750fb: rename macro roundedDiv to rounded_div in ddk750_chip.c Message-ID: 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 Rename CamelCased macro roundedDiv to rounded_div. This issue was found by checkpatch.pl Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 3a0afe1..e4efe91 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -7,7 +7,7 @@ #include "ddk750_power.h" /* n / d + 1 / 2 = (2n + d) / 2d */ -#define roundedDiv(num, denom) ((2 * (num) + (denom)) / (2 * (denom))) +#define rounded_div(num, denom) ((2 * (num) + (denom)) / (2 * (denom))) #define MHz(x) ((x) * 1000000) logical_chip_type_t sm750_get_chip_type(void) @@ -102,7 +102,7 @@ static void setMemoryClock(unsigned int frequency) frequency = MHz(336); /* Calculate the divisor */ - divisor = roundedDiv(get_mxclk_freq(), frequency); + divisor = rounded_div(get_mxclk_freq(), frequency); /* Set the corresponding divisor in the register. */ reg = PEEK32(CURRENT_GATE) & ~CURRENT_GATE_M2XCLK_MASK; @@ -152,7 +152,7 @@ static void setMasterClock(unsigned int frequency) frequency = MHz(190); /* Calculate the divisor */ - divisor = roundedDiv(get_mxclk_freq(), frequency); + divisor = rounded_div(get_mxclk_freq(), frequency); /* Set the corresponding divisor in the register. */ reg = PEEK32(CURRENT_GATE) & ~CURRENT_GATE_MCLK_MASK;