From patchwork Mon Jun 2 09:08:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 4280421 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 0EB3B9F387 for ; Mon, 2 Jun 2014 09:08:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4F18E202EB for ; Mon, 2 Jun 2014 09:08:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4B2CC203AB for ; Mon, 2 Jun 2014 09:08:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753028AbaFBJIq (ORCPT ); Mon, 2 Jun 2014 05:08:46 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:47598 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbaFBJIp (ORCPT ); Mon, 2 Jun 2014 05:08:45 -0400 Received: by mail-wg0-f42.google.com with SMTP id y10so4674928wgg.1 for ; Mon, 02 Jun 2014 02:08:44 -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=ErqqMv3B2eDeSNabZv/icwRJjtfec+0s12YGpDnnhXLKCTR9i44P34mJoBWlLfwEB6 /Na5Zt8WFy9EtgUZYLw0Y/NffLeuPUzEgWGtXCG92AdprMze5VfZxgmuZXGfoZPBaTTj iaTpXi3EVc8GMQvzDIiHvu3HYICfNiGyKGrIPMWeaHt70Ph5+svMgtOGMtknztBxr44P tmB1A798FCsgWb0bVTDUWUNjPsSRZqCUSucEQlD5rTGfEA1xjcyGJMZ6G9oAF8B8uSnz owD3TC9vksvsAZgevWlDEn85mXZkACgpeQNwp0+ciU/OGvIpuSG9Hb9IMF2gsk/l5f5T RK+g== X-Gm-Message-State: ALoCoQnhyxf4eih+mSuiUX2emQhsC+0uhk3rTxTY2kW9EYRMEiYVURO0XCrBUrGLZ6f/EM47J40R X-Received: by 10.180.12.201 with SMTP id a9mr20106342wic.25.1401700124424; Mon, 02 Jun 2014 02:08:44 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-149-12-106.as13285.net. [78.149.12.106]) by mx.google.com with ESMTPSA id gi8sm30842760wib.8.2014.06.02.02.08.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Jun 2014 02:08:43 -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 v6 01/12] mmc: mmci: use NSEC_PER_SEC macro Date: Mon, 2 Jun 2014 10:08:39 +0100 Message-Id: <1401700119-11464-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401699818-11329-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1401699818-11329-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;