scripts: dts: gen_legacy_defines: mark DT_*_BUS_<BUS> macros deprecated

Add a __WARN("Macro is deprecated") to all DT_<COMPAT>_BUS_<BUS> macros
now that all in tree users should have been converted to the new macros.

This is intended to make sure any PRs don't introduce new usages of
these macros.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-04-18 12:42:51 -05:00 committed by Carles Cufí
commit ce4e3b5c7c

View file

@ -270,7 +270,7 @@ def write_bus(node):
err(f"missing 'label' property on bus node {node.bus_node!r}")
# #define DT_<DEV-IDENT>_BUS_NAME <BUS-LABEL>
out_node_s(node, "BUS_NAME", str2ident(node.bus_node.label))
out_node_s(node, "BUS_NAME", str2ident(node.bus_node.label), "Macro is deprecated")
for compat in node.compats:
# #define DT_<COMPAT>_BUS_<BUS-TYPE> 1