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

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



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?

>
> So something like:
>
>         clock-frequency = < /deprecate/ I2C_BITRATE_STANDARD 100000 >;

Doesn't even look valid being 2 cells.

Rob




[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