scripts: Fix bindings style migration script

the script is in the utils subdir, which it didn't knew.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2025-06-18 11:11:04 +02:00 committed by Anas Nashif
commit 0d8f41b594
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ Devicetree
* Property names in devicetree and bindings use hyphens(``-``) as separators, and replacing
all previously used underscores(``_``). For local code, you can migrate property names in
bindings to use hyphens by running the ``scripts/migrate_bindings_style.py`` script.
bindings to use hyphens by running the ``scripts/utils/migrate_bindings_style.py`` script.
DAI

View file

@ -17,7 +17,7 @@ import yaml
# bindings base
BINDINGS_PATH = [Path("dts/bindings/")]
BINDINGS_PROPERTIES_AL = None
with open(Path(__file__).parent / 'bindings_properties_allowlist.yaml') as f:
with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f:
allowlist = yaml.safe_load(f.read())
if allowlist is not None:
BINDINGS_PROPERTIES_AL = set(allowlist)