Skip to content

Commit 0d8f41b

Browse files
maass-hamburgnashif
authored andcommitted
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>
1 parent a7405dc commit 0d8f41b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/releases/migration-guide-4.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Devicetree
102102

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

107107

108108
DAI

scripts/utils/migrate_bindings_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# bindings base
1818
BINDINGS_PATH = [Path("dts/bindings/")]
1919
BINDINGS_PROPERTIES_AL = None
20-
with open(Path(__file__).parent / 'bindings_properties_allowlist.yaml') as f:
20+
with open(Path(__file__).parents[1] / 'bindings_properties_allowlist.yaml') as f:
2121
allowlist = yaml.safe_load(f.read())
2222
if allowlist is not None:
2323
BINDINGS_PROPERTIES_AL = set(allowlist)

0 commit comments

Comments
 (0)