From patchwork Fri May 23 12:50:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 30761 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28B432066E for ; Fri, 23 May 2014 12:50:38 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lc6sf16425628vcb.7 for ; Fri, 23 May 2014 05:50:37 -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=BdhqRDDqlYnNOK6+8fuWjBTvYUSG4ZXZY1Rz6SJ/az8=; b=cPeN7blUOlCQGO2AaB2+q99DEA/xfYL6qIl+ZejZaLlhZwQXIzkh0auKVdx/IMKpDi ad6dzNRKwD+z4TBGxAASlbZdZh4jogkrPrml1GdNL8oA/6Txv7Y4AlmZdX6kgMQIoQX6 VsoEVybpksWwKkdYNc3SbCcAfF/w/UQYmcSpmLBa/KspkvEtzbIbyf/p+szdJmUrqhhd muzKqttA3yMMyLyvTl6F4gzrRwLWgcZPJvNfEEyKsBzHFfZIrAlcRbsWGaFV51BzOqYr NPXPpctE+xc+0igkL9s/m+sbpjSD6QTcBj7cPvYX4EodHldLoOJGmMgfbmabQyTQCydJ dFEQ== X-Gm-Message-State: ALoCoQkWKQr84TTZiC1dFCMXaVxQ0VNuSbeadLR80jFYNLjC/RpL42YcOhlWj7eT/5LHsOvzD1cy X-Received: by 10.58.41.39 with SMTP id c7mr1546358vel.25.1400849437965; Fri, 23 May 2014 05:50:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.37 with SMTP id g34ls1712163qgd.64.gmail; Fri, 23 May 2014 05:50:37 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr3948967vch.22.1400849437821; Fri, 23 May 2014 05:50:37 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id i19si1548990vdt.5.2014.05.23.05.50.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 May 2014 05:50:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jw12so6224566veb.33 for ; Fri, 23 May 2014 05:50:37 -0700 (PDT) X-Received: by 10.52.93.201 with SMTP id cw9mr153047vdb.80.1400849437752; Fri, 23 May 2014 05:50:37 -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 ib8csp28874vcb; Fri, 23 May 2014 05:50:36 -0700 (PDT) X-Received: by 10.67.2.34 with SMTP id bl2mr5645830pad.58.1400849436141; Fri, 23 May 2014 05:50:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pn2si3747715pbb.70.2014.05.23.05.50.35 for ; Fri, 23 May 2014 05:50:35 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752436AbaEWMu0 (ORCPT + 27 others); Fri, 23 May 2014 08:50:26 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:39022 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbaEWMuX (ORCPT ); Fri, 23 May 2014 08:50:23 -0400 Received: by mail-we0-f181.google.com with SMTP id w61so4918503wes.12 for ; Fri, 23 May 2014 05:50:21 -0700 (PDT) X-Received: by 10.194.161.168 with SMTP id xt8mr4043637wjb.35.1400849421899; Fri, 23 May 2014 05:50:21 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-149-4-211.as13285.net. [78.149.4.211]) by mx.google.com with ESMTPSA id v15sm3804283wjq.17.2014.05.23.05.50.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 May 2014 05:50:20 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Russell King , Ulf Hansson , linux-mmc@vger.kernel.org Cc: Chris Ball , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linus.walleij@linaro.org, Srinivas Kandagatla Subject: [PATCH v3 01/13] mmc: mmci: use NSEC_PER_SEC macro Date: Fri, 23 May 2014 13:50:17 +0100 Message-Id: <1400849417-7055-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400849362-7007-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1400849362-7007-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) 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 Reviewed-by: Linus Walleij --- 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 a084edd..a38e714 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -718,7 +718,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;