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:
parent
3802bf54ac
commit
ce4e3b5c7c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue