Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp268067pxb; Wed, 18 Nov 2020 04:09:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7hbiHYQcAyFo8n7pn0EsG16Tq5i3h+z7gYchLAIpQui48ULm6zuBW5hL13rHvsKbDQyh3 X-Received: by 2002:a17:906:80ca:: with SMTP id a10mr24623238ejx.351.1605701386819; Wed, 18 Nov 2020 04:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605701386; cv=none; d=google.com; s=arc-20160816; b=IQnf1Wl7IiOIE8uILwD9ZDHZQwIWc0yMmu2u6IjPveeLjO6hkCMyg3zNcaCrDUNTFL 3NGou3TyuJGStJM5JSmMy1zYfp66U5TF7VUId/aZ1OAl1z2Ofu9BMYnL+QXj1vAlfhqw To7iKJRmsWsY4eQTUr89+ePlAh1oPUAmbyOzHr8A7UvKhOvfigh1/2TrT2AwcvaLCjR+ iXoHT+upHTkG7FcDn/vlK/8fYdeA3VgrRsOTf48D4cn3E6vctCp4HnztMVSAK1+TQWxi IuSQDeA4CbsPYnmXHfy/j6YFjKh7BBidS0YnYJM6MWYbXXi0vYsmh7ddvbvTaGNQvlXI Sk9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=1FGsTK4jZRO1ysmotLROiqEXG3Ws8f/Tdkhxuf49nx0=; b=Fg5v9e4dPBgpsjerceTyN8szRbjIIcNv5Tih36mTWNlon86YKdNrfmkbrczFiMcdX7 gSfzaA+3PW00EkzzuyrY3MECt15xdOp0hdjrd/2dzbxwFimohu/y5iFlaYqEqQmS4WHp ttim0BlanMqFPHUTqe/x7tNVaKsr88wKQu6y1Li4tTNjKLSLpypFDJ8fNSb5k5uqJMx+ ZGJpvu6Q4CjoTVIsNLerOiEVOVVn2qT6a8RmRtAN/sgnSlx4oVI81BbaCXByqhDd+yP0 3mc7TvUILrDjWSkJhlxs6DpKG9yOAD78jaWROMSvjjsIRV++ig4hT26RylWkgMAAVjgk 7oiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si15237183ejv.267.2020.11.18.04.09.22; Wed, 18 Nov 2020 04:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728032AbgKRMIB (ORCPT + 99 others); Wed, 18 Nov 2020 07:08:01 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58878 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726985AbgKRMIB (ORCPT ); Wed, 18 Nov 2020 07:08:01 -0500 X-UUID: 218663880b504d6bbceeafcf6afc19de-20201118 X-UUID: 218663880b504d6bbceeafcf6afc19de-20201118 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 355492193; Wed, 18 Nov 2020 20:07:58 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 18 Nov 2020 20:07:57 +0800 Received: from mtksdaap41.mediatek.inc (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 18 Nov 2020 20:07:56 +0800 From: Hsin-Hsiung Wang To: Rob Herring , Matthias Brugger , , Argus Lin CC: , , , , , Hsin-Hsiung Wang Subject: [PATCH v4 1/5] soc: mediatek: pwrap: use BIT() macro Date: Wed, 18 Nov 2020 20:01:30 +0800 Message-ID: <1605700894-32699-2-git-send-email-hsin-hsiung.wang@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1605700894-32699-1-git-send-email-hsin-hsiung.wang@mediatek.com> References: <1605700894-32699-1-git-send-email-hsin-hsiung.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c index 5d34e8b..c897205 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -27,8 +27,8 @@ #define PWRAP_GET_WACS_RDATA(x) (((x) >> 0) & 0x0000ffff) #define PWRAP_GET_WACS_FSM(x) (((x) >> 16) & 0x00000007) #define PWRAP_GET_WACS_REQ(x) (((x) >> 19) & 0x00000001) -#define PWRAP_STATE_SYNC_IDLE0 (1 << 20) -#define PWRAP_STATE_INIT_DONE0 (1 << 21) +#define PWRAP_STATE_SYNC_IDLE0 BIT(20) +#define PWRAP_STATE_INIT_DONE0 BIT(21) /* macro for WACS FSM */ #define PWRAP_WACS_FSM_IDLE 0x00 -- 2.6.4