Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp517878pxj; Thu, 27 May 2021 05:54:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZFTIK+/4j9DRns9C0YOHzc4XIH2V0C9j4xm+GvbZIWBY5J1YHQia1SoFJHVKmlthGnucL X-Received: by 2002:a92:502:: with SMTP id q2mr2867246ile.203.1622120043182; Thu, 27 May 2021 05:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622120043; cv=none; d=google.com; s=arc-20160816; b=ASVghUFDNjfpuqrRg1s6EJgU/SqG1py1fbKZWF8DvBhE5t9w/bYJPyCNHagYbTanXi Dk+xbCCPODKpxhYWzuGXKeAknOPrBfyGXjDRAJdxUHYa8fIPAITJQ6cEhwJ3AQIdE5jh dKxTOUcF3E+AoDHYkl3+vpwvjuQ7+narqlqtXI0RtPCCbHBzwkiusVXl37lwpMg37GiZ b0PMdyO1Q5Ewo1ErPQb46y6DtfGkUklEr0l7+IqclXoedzPhVKzojIbfAhRqzUWfGN52 t3YMYhDv+LpKAGrjaifG8eL10HL7fGvLBicBMF0K8LhrjPysGa3jXW3cB3wPsxi7feZ4 /f7g== 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=JXwgqig2MJ0XNNwfGFnQQhnqrYV1yUOc/HloC27y/+Y=; b=my4YXT19GV9+8AT7npd6hkfGES0Pe937JRmdWN1NpVPQdn+pC6inAPjw744fn3h/Ox y8iTh3iuuBWdJL6wzAqANoFvCR8j/UfhmBlu5lqZgAUN9rD8/9RArTZzYU2xqd0zmFSf X3aYNCo7t0mEMWEaZjFY1v8olqk74L8c1yecrpXXWjMJ+any2agFVZWb+54OmcUCQjPv HzjRWxS8kto1+XQcOOc2piRpJTSXfqG2ouP464cSW5amIcQpyt0oiR/KTc3oc3no+X6I Hb+osmpnYWIMvIrz/jOI3gerjBIs6xNEPhmJnkT2v0U9+nR9UByExvA0MbMDDfmlMIfG ZDzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bfaVJXjE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 138si2462864iob.20.2021.05.27.05.53.48; Thu, 27 May 2021 05:54:03 -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=@kernel.org header.s=k20201202 header.b=bfaVJXjE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235939AbhE0MyP (ORCPT + 99 others); Thu, 27 May 2021 08:54:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:33526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235734AbhE0MyO (ORCPT ); Thu, 27 May 2021 08:54:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F193B613E3; Thu, 27 May 2021 12:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622119961; bh=KGKc5qTJru05K3irLK2cGRBe4SX+5pRyHRDPOJWvDGc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bfaVJXjELEf7LLxaXkgdVJHahVBB+ju++zovmbaa0+chX90t79PPMqqz3n6f4kmL8 S0bBw1BolgUc05EHIJEjjj5hD5ORLlqPGq+1UnxN05FAL5rRi7YDKfpgsyqH/c71ch UaOtWPYzinuNcOC6J82vpAHsTad9pIffAnEV82Zo0Kp8QRD76ogQzaavy88ajyNcYI PZW9egfAiKsmOKkxs11hjbUnklHxvyDVx8jPRrqCMO5cSmOC1GBfnu1QyeP9GnPJ6L Ia6ljoNDZnZQDyHETvm+NEAdoXN1zkfEW2vwk0HDruwdm4RYgyrq0OdA2y9a4R6931 FwGlYVnkEZSyQ== Received: by mail-ej1-f46.google.com with SMTP id l1so7857223ejb.6; Thu, 27 May 2021 05:52:40 -0700 (PDT) X-Gm-Message-State: AOAM532uuWcVZkQweZCDr+Chkb9BWvRjHlwNKjnYG07XhXVjb8/6Y/TJ Pi+3XJhrM99ytM3lfXm4SgS7xOER9WBAtdAEWA== X-Received: by 2002:a17:906:1d0a:: with SMTP id n10mr3605862ejh.341.1622119959571; Thu, 27 May 2021 05:52:39 -0700 (PDT) MIME-Version: 1.0 References: <20210527121029.583611-1-kyletso@google.com> In-Reply-To: From: Rob Herring Date: Thu, 27 May 2021 07:52:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] dt-bindings: connector: Replace BIT macro with generic bit ops To: Greg KH Cc: Kyle Tso , Heikki Krogerus , Badhri Jagan Sridharan , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 7:41 AM Greg KH wrote: > > 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? Because the DT headers can't depend on kernel headers as they get used separately. Rob