Skip to content

treewide: Use hyphens instead of underscores for property separation #83352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 17, 2025

Conversation

rruuaanng
Copy link
Collaborator

@rruuaanng rruuaanng commented Dec 24, 2024

This inherits from proposal #53502, with the main work as shown in the title. For details, see #53506.

Closes: #83741

@rruuaanng
Copy link
Collaborator Author

I have a lot of work to catch up on right now, like CI checks and other underlying changes (maybe due to a lack of focus).

@rruuaanng rruuaanng force-pushed the bindings-style branch 8 times, most recently from f765f9a to debb691 Compare December 25, 2024 07:11
@rruuaanng
Copy link
Collaborator Author

rruuaanng commented Dec 25, 2024

I wrote another PR which adds the devicetree coding style to the contributor guide.
(it provides a link to the upstream Linux kernel devicetree coding style.)

#83379

@JarmouniA
Copy link
Collaborator

@rruuaanng there is a merge conflict that needs to be resolved

@rruuaanng rruuaanng force-pushed the bindings-style branch 4 times, most recently from 95e3358 to 502e60a Compare June 12, 2025 09:31
JarmouniA
JarmouniA previously approved these changes Jun 12, 2025
This script replaces all underscore(_)
separation in a binding with hyphens(-).

Signed-off-by: James Roy <rruuaanng@outlook.com>
@rruuaanng rruuaanng marked this pull request as draft June 12, 2025 11:18
Implement a check in the CI pipeline to enforce
that property names in device tree bindings do
not contain underscores.

Signed-off-by: James Roy <rruuaanng@outlook.com>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Bindings now use hyphens(-) instead of
underscores(_) as property separators.

Signed-off-by: James Roy <rruuaanng@outlook.com>
Copy link

@rruuaanng rruuaanng marked this pull request as ready for review June 12, 2025 12:58
@henrikbrixandersen henrikbrixandersen merged commit 92b22be into zephyrproject-rtos:main Jun 17, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Architecture Review Jun 17, 2025
maass-hamburg added a commit to maass-hamburg/zephyr that referenced this pull request Jun 18, 2025
in  zephyrproject-rtos#83352 a few bindings were not migrated,
fix that, as it will lead to ci fails.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@maass-hamburg
Copy link
Collaborator

maass-hamburg commented Jun 18, 2025

@rruuaanng some props were not migrated and are now causing ci fails, when dts yamls are changed, fix: #91818

maass-hamburg added a commit to maass-hamburg/zephyr that referenced this pull request Jun 18, 2025
in  zephyrproject-rtos#83352 a few bindings were not migrated,
fix that, as it will lead to ci fails.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
@rruuaanng rruuaanng deleted the bindings-style branch June 18, 2025 09:33
nashif pushed a commit that referenced this pull request Jun 18, 2025
in  #83352 a few bindings were not migrated,
fix that, as it will lead to ci fails.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Coding Guidelines Coding guidelines and style area: Continuous Integration area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree Release Notes To be mentioned in the release notes treewide 🧹
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use hyphens instead of underscores for property separation