Skip to content

Commit 8f02dc5

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32C0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a new board is introduced and used this DTS as example start point. Issues addressed from Zephyr devicetree style guidelines [1]: - Don’t insert empty lines before a dedenting };. - Insert a single empty line to separate nodes at the same hierarchy level. No functional change. Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1] Signed-off-by: Etienne Carriere <[email protected]>
1 parent 440de0d commit 8f02dc5

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

boards/st/nucleo_c031c6/nucleo_c031c6.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
leds: leds {
2525
compatible = "gpio-leds";
26+
2627
green_led_4: led_4 {
2728
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2829
label = "User LD4";
@@ -39,6 +40,7 @@
3940

4041
gpio_keys {
4142
compatible = "gpio-keys";
43+
4244
user_button: button {
4345
label = "user button";
4446
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

boards/st/nucleo_c071rb/nucleo_c071rb.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
leds: leds {
2525
compatible = "gpio-leds";
26+
2627
green_led_1: led_1 {
2728
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2829
label = "User LD1";
@@ -44,6 +45,7 @@
4445

4546
gpio_keys {
4647
compatible = "gpio-keys";
48+
4749
user_button: button {
4850
label = "user button";
4951
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

boards/st/stm32c0116_dk/stm32c0116_dk.dts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
leds: leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_3: led_3 {
2627
gpios = <&gpiob 6 GPIO_ACTIVE_LOW>;
2728
label = "User LD3";
@@ -38,6 +39,7 @@
3839

3940
gpio_keys {
4041
compatible = "gpio-keys";
42+
4143
reset_button: button {
4244
label = "reset button";
4345
gpios = <&gpiof 2 GPIO_ACTIVE_LOW>;
@@ -156,7 +158,6 @@
156158
zephyr,resolution = <12>;
157159
zephyr,vref-mv = <3300>;
158160
};
159-
160161
};
161162

162163
&die_temp {

0 commit comments

Comments
 (0)