Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3903748pxu; Sun, 20 Dec 2020 21:24:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5ovWS31XbPAYCZ8Haw5ptjZ3E9Xiiz6K8QWc4K0dUQTEuf8AQuxXyh79bNWn6+ER6K0mF X-Received: by 2002:aa7:dd17:: with SMTP id i23mr14549537edv.14.1608528289178; Sun, 20 Dec 2020 21:24:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608528289; cv=none; d=google.com; s=arc-20160816; b=PETgf/I/ek0/ILhI3SdRowqANb2zJCzF16rUBQcrpGr8LiGyDStnh521pU1Ee3aNA/ r6y+hLt3I3vFqkvBJn7SjhBoIpnhnMveAZtgolwi6vRkCs8pdqrEVHOlSoc+a9l6Mn0q LTusB9SCumN4c/aUKa3FE2JWPtyGdO0xRZSsl+D8t1TqP35JAv+hSWeXLFHW2YE7O3K0 101YK9QIkt25DlJTQToxawVPNkKs5BXYBBOl22/9lrLcrafpwa9rdxQEAz+y6wPWTJfB qrdJhM3miojzzFq/FnF36l4NqTnZDh0vHCXyNxExKJR6UgTIYQgmlPEftA4doEE9xDLV fgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MJXbrMtWRBdURyC5I8B7LQNcHTL+iYONIS0ggY++dQQ=; b=b8763X1Rt3ubqXp/ru0D265Oo1vLAWbKpLmmeXhu1M2WNW1BuM95FrKRnRORe3i0kj G0ziIeU7ZVoO5Xd47dq9ffYL5OYHm/r8X98EtLTRQOAmTcxOQqylWhGDKDwZPTeAblKw Oxblfx5+3mhnMCQcqh2kQ62m86N4ZTHzLA8YO9dilRNVxbvrIIK9KsRo0hmkcI2LcPwP +5wfsXy+GN6avbzye7vuffbp0y00kLz5IV8F6X0pwpF4ZGgrqGhwvuIx8P9BlgAe/EAm /FrdgnXAjX9v6KyKFWH5jHc8ZEuNQqkDHVa/19R1kkpuYS+HtblumYFoFqeZdcgcGlDz 5aZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QrUzix8F; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly10si8425409ejb.84.2020.12.20.21.24.26; Sun, 20 Dec 2020 21:24:49 -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; dkim=pass header.i=@chromium.org header.s=google header.b=QrUzix8F; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbgLUFXn (ORCPT + 99 others); Mon, 21 Dec 2020 00:23:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbgLUFXn (ORCPT ); Mon, 21 Dec 2020 00:23:43 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA9B1C061282 for ; Sun, 20 Dec 2020 21:23:02 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id q10so4695398vsr.13 for ; Sun, 20 Dec 2020 21:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MJXbrMtWRBdURyC5I8B7LQNcHTL+iYONIS0ggY++dQQ=; b=QrUzix8Fst7ZZDuLtxjMMrLaH2B72HErGInIuInVYVA0GQfIFwcE7K0WMriuFh5FjK 1ihLhsEd55ovSH88hN/Dt37Nec7f4+WAvtKtDGJCVapniADCjkqXmIzHgQyqJPOX2+Cd 8JAS/08y99lMnolcGejh4pchDwKb9/ROWTCB0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MJXbrMtWRBdURyC5I8B7LQNcHTL+iYONIS0ggY++dQQ=; b=cKjxZvrzy+RD/32BEa8x0nPghBJWO/9CneLktN8GBrJmsLYpbR4q2R42mOCD2YGjQ1 uXdlQfQoNpLphKo3atEXeLUmO8cZkl4OFt9P7It79OTCFZsjupp2jBuXCsAFcNSoIIZd Z8YF+M4Wd/TEaJ6GEujCSyjh76N0V9Xgr0TdCrCifgaESarJzeneNjTbbzVkCX4zF6xg Lsa4HCu8vi7rIyqVWutRlVFS3PBomCHQF8YDyggT6j0wUkLWR++3JwJ0kwL6cDKOHmfB EqTBxGNzooM5R7iooHHwksvgq/aNJ44xm4PUTlQ2ECi5ks8aE8lwf4nclRH0hxWaGFfI LCfQ== X-Gm-Message-State: AOAM532dBZ3axcNss83qZRAAB+RMM52tx6+p/sxyKztfztSm5S72UoqP sJUXuO+/nUW3yxxTDDTyBvBC64YGgknfUl/qDGqPYCwRmdc= X-Received: by 2002:a1f:e385:: with SMTP id a127mr11231257vkh.18.1608517478697; Sun, 20 Dec 2020 18:24:38 -0800 (PST) MIME-Version: 1.0 References: <1605700894-32699-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1605700894-32699-2-git-send-email-hsin-hsiung.wang@mediatek.com> In-Reply-To: <1605700894-32699-2-git-send-email-hsin-hsiung.wang@mediatek.com> From: Nicolas Boichat Date: Mon, 21 Dec 2020 10:24:27 +0800 Message-ID: Subject: Re: [PATCH v4 1/5] soc: mediatek: pwrap: use BIT() macro To: Hsin-Hsiung Wang Cc: Rob Herring , Matthias Brugger , Fei Shao , Argus Lin , Devicetree List , lkml , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , srv_heupstream Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 8:08 PM Hsin-Hsiung Wang wrote: > > Use a better BIT() marco for the bit definition. > No functional changes, cleanup only. > > Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Nicolas Boichat > --- > 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 >