From patchwork Mon Apr 21 21:47:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 28736 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 259AA2032B for ; Mon, 21 Apr 2014 21:48:33 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j7sf18658953qaq.10 for ; Mon, 21 Apr 2014 14:48:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=veHWYLA4E/jTPi9duyimuumhRJHaiS1coAE7Ax8iTzQ=; b=ATGyLnYLRuR2HnZBA/0u2AiwI3FdH934NK2BH/Bl/IhrTZkkDKxfXIrQgtnL2r2iE6 L/XMa5SBVUgRMEl5y1jyMHCHbllzLueuaASvCU5s+ZWCfQW34+VpfQRIwNTrF2Cwa2jj 30YLahtHDdujdOz4nkZ6MFMeNC6Xh6O0P8tR91Jhh9djNKVXoUERepXrzCQ+JVdcPo53 lrYOQBOevQA98U+oJUeRRK0ZEDYXu0HFxXTH30PzPEBQnmjX2hBJUT03ANARDQuEMine 69CiA+juqLjyeEBv5mlaNgG468WgDOs0UHSmTgJRuCCZjTwcu0ZBEeQtfN0AHS/x8DOo BTKg== X-Gm-Message-State: ALoCoQmEyLmnf+HQr5eZJ+w6iczO/CfaQtWmHOLHzZhK0OGjpr1jAwPmrJQH/f0TnV7g9Sueh+Tf X-Received: by 10.58.248.99 with SMTP id yl3mr22208141vec.9.1398116912977; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.229 with SMTP id t92ls2648829qgd.9.gmail; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) X-Received: by 10.52.128.231 with SMTP id nr7mr27158956vdb.17.1398116912880; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id z15si6471035vcj.36.2014.04.21.14.48.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:48:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so8864877veb.0 for ; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) X-Received: by 10.52.251.199 with SMTP id zm7mr27832731vdc.21.1398116912813; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp320773vcb; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) X-Received: by 10.66.254.234 with SMTP id al10mr5513792pad.137.1398116912139; Mon, 21 Apr 2014 14:48:32 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bs8si21517049pad.258.2014.04.21.14.48.31; Mon, 21 Apr 2014 14:48:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754859AbaDUVsW (ORCPT + 26 others); Mon, 21 Apr 2014 17:48:22 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:56500 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754822AbaDUVsE (ORCPT ); Mon, 21 Apr 2014 17:48:04 -0400 Received: by mail-wi0-f174.google.com with SMTP id d1so2358491wiv.13 for ; Mon, 21 Apr 2014 14:48:03 -0700 (PDT) X-Received: by 10.194.19.161 with SMTP id g1mr30018436wje.20.1398116883287; Mon, 21 Apr 2014 14:48:03 -0700 (PDT) Received: from srinivas-Inspiron-N5050.dlink.com (host-78-149-8-254.as13285.net. [78.149.8.254]) by mx.google.com with ESMTPSA id h19sm18422675wiw.17.2014.04.21.14.48.02 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 14:48:02 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: linux-mmc@vger.kernel.org Cc: Russell King , Chris Ball , Ulf Hansson , linux-kernel@vger.kernel.org, agross@quicinc.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 05/12] mmc: mmci: use NSEC_PER_SEC macro Date: Mon, 21 Apr 2014 22:47:58 +0100 Message-Id: <1398116878-31396-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398116624-31052-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1398116624-31052-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Srinivas Kandagatla This patch replaces a constant used in calculating timeout with a proper macro. This is make code more readable. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/host/mmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 36db31e..4f8d0ba 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -759,7 +759,7 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data) data->bytes_xfered = 0; clks = (unsigned long long)data->timeout_ns * host->cclk; - do_div(clks, 1000000000UL); + do_div(clks, NSEC_PER_SEC); timeout = data->timeout_clks + (unsigned int)clks;