From patchwork Mon Sep 7 11:31:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 7133841 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3FAACBEEC1 for ; Mon, 7 Sep 2015 11:36:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E5D2200E1 for ; Mon, 7 Sep 2015 11:36:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D46D20604 for ; Mon, 7 Sep 2015 11:36:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYugk-00061y-86; Mon, 07 Sep 2015 11:34:18 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZYugW-0005rT-ME for linux-arm-kernel@lists.infradead.org; Mon, 07 Sep 2015 11:34:05 +0000 Received: by pacfv12 with SMTP id fv12so97360708pac.2 for ; Mon, 07 Sep 2015 04:33: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=5ECmT7v4KiURPFdV5q93oEAifhbddU8I+AbCjY0sio4=; b=fDHOgsBohl1pzVsYZLdlIAuRdmiDRZU0i1AlOdBhy7+2IeowqWsJYFxZSHGQiI5Zfw 77qdvaCLUaFD0BZnfTSUztW0it/uu2iufQ4ewDmJeKYJ7kdLgfFVmqE4nPyUOwkjN/gv weCdDIqS5tODuIjgSnVg4aSwuIDjSYRwCGoKiBY8e77HoJtkbe+VA86NeSff82P4vP+S 6QCr4A6sZQZg2yHyJew9D5PgjK0r3iDogU+USgZBHErAiSxc7tYPYE8g/iIY3KnP6FMY 7JOh9f6iSagC50S3NuYuyOvkZSjaXN8xQCl0dIcsxXRu+e5Sgd+9Q9kwzdbmJLcq9IYg 00uQ== X-Gm-Message-State: ALoCoQmg04wYsIYgTd5XyC+6m9WUvo2OXLR/hY6MG7zQBBJ04l3AvmSXz5bxmh51U3wyp2LmgwCv X-Received: by 10.68.68.205 with SMTP id y13mr44053135pbt.99.1441625623891; Mon, 07 Sep 2015 04:33:43 -0700 (PDT) Received: from localhost.localdomain ([202.62.93.139]) by smtp.gmail.com with ESMTPSA id o3sm11783645pap.37.2015.09.07.04.33.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Sep 2015 04:33:42 -0700 (PDT) From: Vaibhav Hiremath To: linux-mmc@vger.kernel.org Subject: [PATCH-v2 2/3] mmc: sdhci-pxav3: Use BIT macro for bit field definitions Date: Mon, 7 Sep 2015 17:01:10 +0530 Message-Id: <1441625471-16315-3-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441625471-16315-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1441625471-16315-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150907_043404_798040_96A1D307 X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Instead of using shift operation use BIT macro for bit field definitions. Signed-off-by: Vaibhav Hiremath --- drivers/mmc/host/sdhci-pxav3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 7a07177..a8a8c94 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -47,7 +47,7 @@ #define SDCLK_DELAY_MASK 0x1f #define SD_CFG_FIFO_PARAM 0x100 -#define SDCFG_GEN_PAD_CLK_ON (1<<6) +#define SDCFG_GEN_PAD_CLK_ON BIT(6) #define SDCFG_GEN_PAD_CLK_CNT_MASK 0xFF #define SDCFG_GEN_PAD_CLK_CNT_SHIFT 24 @@ -55,8 +55,8 @@ #define SD_CE_ATA_1 0x10C #define SD_CE_ATA_2 0x10E -#define SDCE_MISC_INT (1<<2) -#define SDCE_MISC_INT_EN (1<<1) +#define SDCE_MISC_INT BIT(2) +#define SDCE_MISC_INT_EN BIT(1) struct sdhci_pxa { struct clk *clk_core;