Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp676028pxj; Thu, 27 May 2021 09:08:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywvIR2Jm61zI33qseMkLvPu9123XWuTdFpBE9twplPcJW7DyzfvK1EvBHVr5QUaO3zcu8Q X-Received: by 2002:a6b:e719:: with SMTP id b25mr3284684ioh.49.1622131739099; Thu, 27 May 2021 09:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622131739; cv=none; d=google.com; s=arc-20160816; b=h21QhowRSmqW4Lz89HX02I4C8pBVEB3I9jKFhQtJWzafHymMawZaY4gNgi2l5WXuic anbECy5aiwZZfiJioUGrqU2Y8bnwzHXvHmG1t+vmQnydCmTW4W1RIht3fZK+qIfKmLcn qCIojjtX5jEW9WuHbC66zQhw6NZhB4oMBQqfZBcBaoEm7cRAxsR21Dc8S0U336GMU/Bt WwZAeOTd83qYPao71tVDnAVHC6VImQefJRGjn+RcQQyjZbAdhNzwihcPzA8G2d4R8O8y oP4hIh6iKWNRBPjpLHgwdZRUcibgyXyd6y935W1gaPgBnRVDTUD1oYm97isr3/ACOK31 2P5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=17w7mfxboP8uq3TQqkBbZ5aRL3DdDTfuL+3fr7Wl8CQ=; b=HWg59zoSMUtjLJmwqtEpf1EYulqoJBgOFea+K9EUyDMnTX53Uq0Ilbv5ldzz7litKh OlaHhJaUv1jVhFoAh+n6nkPfBSOqCEKioqGNzxuLWimX2uF3gkIPCwA9FG0tf6LWNbRK W67G4643KILoDtp/R/zfW8bJEipgOligROPu/XqRAVUtD33CwFdoSnCTWYZXSra4sMc8 +g9flzl7f/UPb/ZtYhVb0gOjiZZpjgjUgpatoLO3YD9W2XnIXJjICsLKzXNNy2VRO6rg 70MhvxW6/nxBNxKeEbcHrNS+W01oq7sykyX1lcYroov/dOQzDKEbV4n+gPOASgcaWwDK 0+oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GIllHRqY; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si2656162ilu.64.2021.05.27.09.08.44; Thu, 27 May 2021 09:08:59 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=GIllHRqY; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235586AbhE0Mmr (ORCPT + 99 others); Thu, 27 May 2021 08:42:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:59320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235570AbhE0Mmp (ORCPT ); Thu, 27 May 2021 08:42:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 85C20613C3; Thu, 27 May 2021 12:41:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622119271; bh=5WxsA1WAO6tWgWz77ekv//DLaN/lDLlPxwS1g7L8DV4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GIllHRqYVM+slgMU4SL3IyyU0GALZO55e/NgBDhpeWvUQpHcFG0wW2kOY+u6s+5rl /vlIjo7SW+ARvpPWQs7kvYJpOaLMAfDv2+2PDwnIkdd1h464SjPXyDF7sHLnvQBzXu u6fQ8zOn422LuLCVpDcUrvCOLpvENu1OeuzxOt0M= Date: Thu, 27 May 2021 14:41:08 +0200 From: Greg KH To: Kyle Tso Cc: heikki.krogerus@linux.intel.com, robh+dt@kernel.org, badhri@google.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2] dt-bindings: connector: Replace BIT macro with generic bit ops Message-ID: References: <20210527121029.583611-1-kyletso@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210527121029.583611-1-kyletso@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 08:10:29PM +0800, Kyle Tso wrote: > BIT macro is not defined. Replace it with generic bit operations. > > Fixes: 630dce2810b9 ("dt-bindings: connector: Add SVDM VDO properties") > Signed-off-by: Kyle Tso > --- > Changes since v1: > - re-word the commit message > > include/dt-bindings/usb/pd.h | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/include/dt-bindings/usb/pd.h b/include/dt-bindings/usb/pd.h > index fef3ef65967f..cb70b4ceedde 100644 > --- a/include/dt-bindings/usb/pd.h > +++ b/include/dt-bindings/usb/pd.h > @@ -163,10 +163,10 @@ > #define UFP_VDO_VER1_2 2 > > /* Device Capability */ > -#define DEV_USB2_CAPABLE BIT(0) > -#define DEV_USB2_BILLBOARD BIT(1) > -#define DEV_USB3_CAPABLE BIT(2) > -#define DEV_USB4_CAPABLE BIT(3) > +#define DEV_USB2_CAPABLE (1 << 0) > +#define DEV_USB2_BILLBOARD (1 << 1) > +#define DEV_USB3_CAPABLE (1 << 2) > +#define DEV_USB4_CAPABLE (1 << 3) Why not just include the proper .h file instead?