Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp526541pxj; Thu, 27 May 2021 06:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhsRFtAfU/ycEEs8uvASHe359zixA48wsHPBaUEOKfIvaukyzrwV7Aixu2+iB4ogLiz4gM X-Received: by 2002:a17:906:7a13:: with SMTP id d19mr921630ejo.69.1622120695188; Thu, 27 May 2021 06:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622120695; cv=none; d=google.com; s=arc-20160816; b=f5QS3HHTtWeVUDtmfDtC1QZKKYQTga9AUy6W3z1UC7rJRjjJZ/gl7OD2S8TzEX+cpU Gv3s6+QNGWMAssrZKGkM30Sg041ObjBBhLUbKMKrSdREYnhRhls65C1IU/uthWNNhvNy darv0ND8DcE9xSgIk2jav6KnxO7WBHU2Tx6UsSEdbETmJmVrF1DifsdrZA8O7RiXbClI o8CViM0q3bddo2kgqxK8Mtpv5Yri/HqO0zYq/odq0t+tQ8EzTm0i31riQSOFf7paYEtp kIgHuBCzV15mBE5ihtv7KQ1Jb6rU44/eajuhm0ucc5vAepuBAcslMHfVmzs3b0Y4sJ4P mQGw== 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=aTyjjDhs5xAJqdU1HJuvYDdCqJVeXcNu6fftQ/mYu/M=; b=FWUAdULqhh0m2HhkhELVYggJKrajZl9ZinJkIOzqHqpEp9yxC3TX0sigJH7sEPiNPl PwgFROXoFkiNQeXHc2KfBJZoO7qTdzhL8QvBnB3hUSgbsreA/5zPDrTMSEsulJM+Vzh+ 4oLHkqMQZTLguI/DZB7m+lARgS4I8lfbhVngUIucvJ0cX3Yah//d91ee2rG+/KAGU/p8 ZXr4t97aLnJqQpNh3kr+mYDOaCN1sEYZJiO3tRsATFogvApyi4IYOOANMhp0wJJ+ixrT Ti8GPjhioV0FW9In9lr3cGKEk2ggbqAFJgUimMFjp0XQ7IQlOY9nQKeCwozcYFujIXRy 2Yaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IDA685yd; 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 q13si1920598edd.354.2021.05.27.06.04.30; Thu, 27 May 2021 06:04:55 -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=IDA685yd; 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 S235983AbhE0NE3 (ORCPT + 99 others); Thu, 27 May 2021 09:04:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235177AbhE0NE2 (ORCPT ); Thu, 27 May 2021 09:04:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A0099610A2; Thu, 27 May 2021 13:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622120574; bh=eA7hFQjhjlkA6FGzsMI9qG2tJxSORQ8/zD5C/vVFOsw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IDA685ydk5IwY08vYougvVTSpbadl4AfWVhExFtxyasStnLxobzjttrsWWSXEvGPB BKHuGOGlowt+e8RA8eWWzkclXhCIz1cWHBKaiiIYrXuFVJEdF4zE6g0p32cmuxjnvx CcdVGDnpD+iAbK/snbwWc0MmKYL/M6Pyi3zgIQfA= Date: Thu, 27 May 2021 15:02:51 +0200 From: Greg KH To: Rob Herring Cc: Kyle Tso , Heikki Krogerus , Badhri Jagan Sridharan , "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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 07:52:24AM -0500, Rob Herring wrote: > 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. Lame. :)