Re: Deprecating a #define(s) w/dtc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




> On Aug 20, 2019, at 3:33 PM, Rob Herring <robh@xxxxxxxxxx> wrote:
> 
> On Tue, Aug 20, 2019 at 1:19 PM Kumar Gala <kumar.gala@xxxxxxxxxx> wrote:
>> 
>> Is there some operator/function we could define to be able to flag deprecated defines.
>> 
>> For example with gcc we can do:
>> 
>> #define __DEPRECATED_MACRO _Pragma("GCC warning \"Macro is deprecated\”")
> 
> Defines use gcc preprocessor (and are invisible to dtc), so wouldn't
> this work already?

Its fine for the .c side, was just giving an example of how gcc handles things

>> So something like:
>> 
>>        clock-frequency = < /deprecate/ I2C_BITRATE_STANDARD 100000 >;
> 
> Doesn't even look valid being 2 cells.

Open to suggestions, was just giving a thought on how a /deprecate/ function would look like.  Open to any other scheme.

- k



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux