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: 31060 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f69.google.com (mail-yh0-f69.google.com [209.85.213.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C0A7020068 for ; Wed, 28 May 2014 13:46:14 +0000 (UTC) Received: by mail-yh0-f69.google.com with SMTP id i57sf46708663yha.8 for ; Wed, 28 May 2014 06:46:14 -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=wpLmktm1RFrLSf6LTx8iw0tzFy5STM9rkmAcZ6DBA90=; b=gv7dMOhKn8bdfKbnYiNzBR8paZL732RqbVHWlw2y299I8A22Jm1VBnW/oCGyGzGZaG AG0hykfOW2cuGWIquf6w03OaqITdCZ5wc9oBT0eYfaM27F1RzZV6IdNjQoJlx6ogmNJU NJ06RTiPGakIQJT5mPSCjFHKmi97d8c3X/oUe+NdK5BaxeMje1q+VGV1WSqpwHRazo5Q is9yKZbEUVKs5k8fjS01nl7TIEWlPs16mNwqDUkmXCqAvDavg/+7CgjLrIs4gRcRqlMX dZ2tYmdtL98NC/9bp2dEBVCh+a9cmov0EoAdsgOwlNKhUeiskG+JkSqsn6+RiFsUlN6f tw8g== X-Gm-Message-State: ALoCoQnebnCBnErVgI1QfJ6VCEzca9ED2P+qH7Q6oKuKDAysiOg/6xv0GDaC/1x757qBzqhXYoK2 X-Received: by 10.224.12.14 with SMTP id v14mr9192747qav.8.1401284774554; Wed, 28 May 2014 06:46:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.43.35 with SMTP id d32ls94660qga.87.gmail; Wed, 28 May 2014 06:46:14 -0700 (PDT) X-Received: by 10.58.123.71 with SMTP id ly7mr33870530veb.11.1401284774441; Wed, 28 May 2014 06:46:14 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id ky16si168743vdb.106.2014.05.28.06.46.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 06:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id im17so12209562vcb.24 for ; Wed, 28 May 2014 06:46:14 -0700 (PDT) X-Received: by 10.221.7.71 with SMTP id on7mr34415248vcb.18.1401284774360; Wed, 28 May 2014 06:46:14 -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 ib8csp204286vcb; Wed, 28 May 2014 06:46:13 -0700 (PDT) X-Received: by 10.68.160.163 with SMTP id xl3mr47165320pbb.39.1401284772162; Wed, 28 May 2014 06:46:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pt4si23802762pac.241.2014.05.28.06.46.11; Wed, 28 May 2014 06:46:11 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-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 S1753791AbaE1NqG (ORCPT + 3 others); Wed, 28 May 2014 09:46:06 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:63520 "EHLO mail-we0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753787AbaE1NqD (ORCPT ); Wed, 28 May 2014 09:46:03 -0400 Received: by mail-we0-f180.google.com with SMTP id q58so2431442wes.25 for ; Wed, 28 May 2014 06:46:02 -0700 (PDT) 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-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@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.220.179 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;