From patchwork Wed May 28 13:45:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4255161 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E70B29F336 for ; Wed, 28 May 2014 13:46:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0E77720145 for ; Wed, 28 May 2014 13:46:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 31A2620138 for ; Wed, 28 May 2014 13:46:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753802AbaE1NqG (ORCPT ); Wed, 28 May 2014 09:46:06 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:33078 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753791AbaE1NqD (ORCPT ); Wed, 28 May 2014 09:46:03 -0400 Received: by mail-wi0-f174.google.com with SMTP id r20so3739714wiv.13 for ; Wed, 28 May 2014 06:46:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YCSYkSO1D34z+tXEtn6xbrJ+WRHkL5ObL2aDuhK4XEE=; b=PtIXNpOn2NMpfEVC/Q7H0FE3aVTYc30Q6mX2CMDbuITmvy9SvpNd0sK5W0EcECZdf/ jw3tNO1gvi1Ss9mlRpl8eAff0I+V4ZUa38cBi1XW95a2c3ZFf4Mtpk2V+yOPCwMCKsVs mZ3MlstmI3EHt0/zZ01eMdDVM3Co31Pf7Qh9qgpDjETRd69esSRCWf+DEW8W7ADemo5i 4Fx1g8Q9dg7OPO7F1hJvUDqWjXsKAOzVrGKhMk1clzV4VdEiBBUufbrGxCLrPkLBhepe CSvoxI2+GBYIAu78PQKqXr247H9BvnGqbo67mGZGdj0g/+qk3CqtDnxLDs+BQu9US+fu hb2w== X-Gm-Message-State: ALoCoQn2HbXI4LQWsNSFb5h0W/wAjKZBXrtvmbzIkSxXz3voY0hjFx3MYKtUlVFZmBDDlWwCw1lS X-Received: by 10.181.11.193 with SMTP id ek1mr44452894wid.15.1401284762052; Wed, 28 May 2014 06:46:02 -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 lz11sm17029829wic.0.2014.05.28.06.46.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 May 2014 06:46:01 -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 v4 01/13] mmc: mmci: use NSEC_PER_SEC macro Date: Wed, 28 May 2014 14:45:55 +0100 Message-Id: <1401284755-16481-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401284608-16428-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1401284608-16428-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;