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: 53228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id EC02322B05 for ; Mon, 7 Sep 2015 11:33:55 +0000 (UTC) Received: by lamp12 with SMTP id p12sf25589967lam.2 for ; Mon, 07 Sep 2015 04:33:55 -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=n29TIPcWmYRNUsLhtV5Hr5+b6T5ymafzExdHlXHK+zM=; b=L8lPTaYhZNk0TNnaROKwa3c/WRvXoUw53bx0H86CZLmOXBreuxGkKRWLdqs58Na+Vx cuRobDHf59GeenYqzFRfUmqTwwPBTs84DI87/1S73I4w51k9GsUZ0AWNqQ47UHCkW/0S f6SP9+kKjXNFXin+VA0s+m7c9nmEIUUGi1XN+Uj5N7F5eDXF2tKtkklwFAUDjqD8CO1Q 5+8aS73kIGx14x2pvYeOZRWnslAI3QR/cINbQQ/XpR/UWNaObvtvJthCEeQFNRbz6G21 8tb0Q6mv6gane5Nv3cZiiEoPWlYKGUlRQu9VgB+BTMWf88xRdK+PS3aojnT3ksSR0T3+ bhYQ== X-Gm-Message-State: ALoCoQmskYKyKvn/I38iDf1Fb8lp6MxHd0GDtlYbTt8RYa9bjxzhTJvKwLx/bmnKUlv1MDQzDHEc X-Received: by 10.152.224.129 with SMTP id rc1mr4871071lac.10.1441625634945; Mon, 07 Sep 2015 04:33:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.202 with SMTP id p10ls552359lae.95.gmail; Mon, 07 Sep 2015 04:33:54 -0700 (PDT) X-Received: by 10.152.180.171 with SMTP id dp11mr8006695lac.39.1441625634766; Mon, 07 Sep 2015 04:33:54 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ir2si9630623lac.127.2015.09.07.04.33.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Sep 2015 04:33:54 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lamp12 with SMTP id p12so49190888lam.0 for ; Mon, 07 Sep 2015 04:33:54 -0700 (PDT) X-Received: by 10.112.131.98 with SMTP id ol2mr16976788lbb.56.1441625634673; Mon, 07 Sep 2015 04:33:54 -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.112.59.35 with SMTP id w3csp322116lbq; Mon, 7 Sep 2015 04:33:53 -0700 (PDT) X-Received: by 10.50.79.164 with SMTP id k4mr27218714igx.16.1441625633617; Mon, 07 Sep 2015 04:33:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pg1si19619475pdb.253.2015.09.07.04.33.52; Mon, 07 Sep 2015 04:33:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751627AbbIGLds (ORCPT + 28 others); Mon, 7 Sep 2015 07:33:48 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33847 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751345AbbIGLdo (ORCPT ); Mon, 7 Sep 2015 07:33:44 -0400 Received: by padhy16 with SMTP id hy16so92978998pad.1 for ; Mon, 07 Sep 2015 04:33:44 -0700 (PDT) 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, ulf.hansson@linaro.org, Vaibhav Hiremath 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@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.215.48 as permitted sender) smtp.mailfrom=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: , 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;