From patchwork Tue Apr 29 08:20:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4085921 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 661ECC0ACC for ; Tue, 29 Apr 2014 08:23:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A242920155 for ; Tue, 29 Apr 2014 08:23:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB841201F5 for ; Tue, 29 Apr 2014 08:23:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756964AbaD2IUM (ORCPT ); Tue, 29 Apr 2014 04:20:12 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:46887 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756960AbaD2IUK (ORCPT ); Tue, 29 Apr 2014 04:20:10 -0400 Received: by mail-wg0-f46.google.com with SMTP id a1so1950250wgh.17 for ; Tue, 29 Apr 2014 01:20:08 -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=DsfuPOcgSH+O+QQ1WETy0wVWBsSfi/G6Wj02K2b7DHhecFc1ur02MCJdfkf7ikrVHo 17D9Nf8Jw5bvps8QFzFsOgR2rLKA81OrTZcT8l0t2/gE4pghoAjYt3hMKGnmzbkZasy0 MeZQfz9dpIsvXbsLXZQzyni3aTWTDWwoZGkT26B8eQkxBqMH6uOCzE+AQcGKcyJiCvuZ HOjqolc7sJjddHvL+VBDxNfvaI9+PL20TlXBcPCYr4gZQJx8C1RcWWurWTD1qykH0JP/ d3oSGZzpGPeXREDvsu8KTOjlFPrIdI5vbIIfIlmVw6FqaU2JZVHRVrjT0auyU/oMoQpw N+rQ== X-Gm-Message-State: ALoCoQkg4QFaaeA+PvsFvFOeNw/JOYZj8yOcDVLSdM4soIGKjJubwlri+AXnrTsuFg9KJUTG6inr X-Received: by 10.180.13.8 with SMTP id d8mr19267882wic.13.1398759608898; Tue, 29 Apr 2014 01:20:08 -0700 (PDT) Received: from srinivas-Inspiron-N5050.dlink.com (host-78-147-6-229.as13285.net. [78.147.6.229]) by mx.google.com with ESMTPSA id f11sm567540wiv.1.2014.04.29.01.20.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Apr 2014 01:20:08 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: Russell King , linux-mmc@vger.kernel.org Cc: Chris Ball , Ulf Hansson , linux-kernel@vger.kernel.org, agross@quicinc.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v1 05/11] mmc: mmci: use NSEC_PER_SEC macro Date: Tue, 29 Apr 2014 09:20:01 +0100 Message-Id: <1398759601-13178-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1398759492-12970-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1398759492-12970-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 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;