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: 4026501 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0773FBFF02 for ; Mon, 21 Apr 2014 21:48:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 372D7201EF for ; Mon, 21 Apr 2014 21:48:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C76820357 for ; Mon, 21 Apr 2014 21:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754849AbaDUVsU (ORCPT ); Mon, 21 Apr 2014 17:48:20 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:55709 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754820AbaDUVsE (ORCPT ); Mon, 21 Apr 2014 17:48:04 -0400 Received: by mail-we0-f178.google.com with SMTP id u56so4103683wes.23 for ; Mon, 21 Apr 2014 14:48:03 -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=3NDONmfFr+kAoKH4mRcGne161ufDuBF7bc8g6ndYA7U=; b=eA9O+56v/3HqZIGCpcokMdWmeI8wiJ49+0sL/I/Iwt4m3HY9ug2cr8HRgm6y+wGglJ wW7HyRbdhz/PX6xAqQlYlh0aosZhbYmOeQu3uQD/DbaIeWgUx3UFxS94ZoPBcvQV3jfp 42HXZK7060qtVUktEUvVZBtwZTjdhdFiB+8th+oHkMSQogQX/IKeT/U8eaa4RAQWbMqV gapkMQIyPD2euSUCUZxaxXFj18cgV5E+yMwvj6HrwaIZi/Jp7UciGwGMcAra8kMoCJx6 5IKKB5Hfa4H/7r+I0DYtuN23pVCVixxDP8/GM1Jyxzo2TCx4uUAZ0ZgxWgRJQB7oAevq EPSw== X-Gm-Message-State: ALoCoQme7L9kNgZ7JxdpVG9o+BUtPQoudntZ6THAg7fx286eAJUs58L95kArizRJVLq95pcqnBUb 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-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 --- 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;