From patchwork Fri Nov 9 11:39:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12785 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B13914C16A7 for ; Fri, 9 Nov 2012 11:46:06 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6B51FA18790 for ; Fri, 9 Nov 2012 11:46:06 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so5478728iej.11 for ; Fri, 09 Nov 2012 03:46:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=L/2sqH8mfTSiJk8Z4ziQZR7PrMxrqBEmMylRxt1Rtg0=; b=aFUf8jCjHELT3/5X1v2thqFdH6jpB9SfT7ZdlL1Dth5+tTx2yZVl3+jmTnub8oRi9b ov3IKZqaynwcmadK7XcJaeYq69AFKATmCcXMjWvjZSGSD/N2xrGTCd8uz26e+NR2amRA xo/7piHnIgn+X7y0Us3Ck9qeNhOcjCQI8egAT83ItTUq4npXhYlVhLVNBFFieIBLSTOf LXGpe8YrZGAkwNcRrtSRH89xmxW9hnrahPsOAai0kVK9sb6lceZl0DSDSzF9CbX+bGAj MGHB4ms/ni4roKWNUGXHI4XHtdpY1E6GG7ebZePTenDhEfreLcTiy1K4K6C19ksOoyeG LMWw== Received: by 10.50.152.137 with SMTP id uy9mr1017151igb.62.1352461566217; Fri, 09 Nov 2012 03:46:06 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp15756igt; Fri, 9 Nov 2012 03:46:05 -0800 (PST) Received: by 10.68.248.10 with SMTP id yi10mr26281594pbc.39.1352461565692; Fri, 09 Nov 2012 03:46:05 -0800 (PST) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id i6si39014542pay.275.2012.11.09.03.46.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 03:46:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.47; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f47.google.com with SMTP id fa11so2517215pad.6 for ; Fri, 09 Nov 2012 03:46:05 -0800 (PST) Received: by 10.68.218.97 with SMTP id pf1mr32786916pbc.96.1352461565474; Fri, 09 Nov 2012 03:46:05 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id tm8sm17629901pbc.48.2012.11.09.03.46.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 03:46:04 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: cjb@laptop.org, patches@linaro.org Subject: [PATCH 4/8] mmc: sdhci: fix coding style in sdhci_set_clock Date: Fri, 9 Nov 2012 17:09:54 +0530 Message-Id: <1352461198-21941-5-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352461198-21941-1-git-send-email-tushar.behera@linaro.org> References: <1352461198-21941-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQn+U+OFZ5JQelMxRnXTXaqpOgTUv7TogzpJCxaFsDEWeA+snTcSMWl8jhn9/10U6ir1wctf Signed-off-by: Tushar Behera --- drivers/mmc/host/sdhci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 73bb41f..28da461 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1138,9 +1138,9 @@ static void sdhci_set_clock(struct sdhci_host *host, unsigned int clock) } } else { /* Version 3.00 divisors must be a multiple of 2. */ - if (host->max_clk <= clock) + if (host->max_clk <= clock) { div = 1; - else { + } else { for (div = 2; div < SDHCI_MAX_DIV_SPEC_300; div += 2) { if ((host->max_clk / div) <= clock)