Skip to content
Permalink
Browse files

dts/scripts: mark all non DT_ prefix deprecated

Now that we've converted LED and SW to use DT_ prefix we can mark the
non-DT_ prefixed versions as deprecated.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Jun 21, 2019
1 parent 5c78b93 commit 81072b53a6733fd5f5795c042505402881e40b29
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/dts/extract_dts_includes.py
@@ -305,14 +305,16 @@ def max_dict_key(dct):
deprecated_warn = False
if prop in deprecated_main:
deprecated_warn = True
if not prop.startswith('DT_'):
deprecated_warn = True
f.write(define_str(prop, defs[node][prop], value_tabs, deprecated_warn))

for alias in sorted(defs[node]['aliases']):
alias_target = defs[node]['aliases'][alias]
deprecated_warn = False
# Mark any non-DT_ prefixed define as deprecated except
# for now we special case LED, SW, and *PWM_LED*
if not alias.startswith(('DT_', 'LED', 'SW')) and not 'PWM_LED' in alias:
if not alias.startswith('DT_'):
deprecated_warn = True
if alias in deprecated:
deprecated_warn = True

0 comments on commit 81072b5

Please sign in to comment.
You can’t perform that action at this time.