Skip to contentSkip to conversation

board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

PATCH New Patrick Delaunay 3 participants 4 messages Apr 10, 2020 – Apr 15, 2020 Arm STM32

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

Use the correct macro to test presence CONFIG_LED:
replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED)

Issue see during review unrelated patch "board: stm32mp1: update management of boot-led"
http://patchwork.ozlabs.org/patch/1264823/

Cc Marek Vasut <[email protected]>
Cc Patrice Chotard <[email protected]>

---

 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 board/st/stm32mp1/stm32mp1.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
board/dhelectronics/dh_stm32mp1/board.c +1 -1
index 7bcd713a86..3c14d8206d 100644
@@ -398,7 +398,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
 	return 0;
board/st/stm32mp1/stm32mp1.c +1 -1
index 07f5344ec9..053c5e1f07 100644
@@ -647,7 +647,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
 	return 0;
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

Quoted 10 lines · Patrick Delaunay

Use the correct macro to test presence CONFIG_LED:
replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED)

Issue see during review unrelated patch "board: stm32mp1: update management of boot-led"
http://patchwork.ozlabs.org/patch/1264823/

Cc Marek Vasut <[email protected]>
Cc Patrice Chotard <[email protected]>
#2 lore raw

PATCH 1/1 board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

In reply to Patrick Delaunay

Hi

Quoted 34 lines · Patrick Delaunay

Use the correct macro to test presence CONFIG_LED:
replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED)

Issue see during review unrelated patch "board: stm32mp1: update management of boot-led"
http://patchwork.ozlabs.org/patch/1264823/

Cc Marek Vasut <[email protected]>
Cc Patrice Chotard <[email protected]>

---

 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 board/st/stm32mp1/stm32mp1.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
board/dhelectronics/dh_stm32mp1/board.c +1 -1
index 7bcd713a86..3c14d8206d 100644
@@ -398,7 +398,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
 	return 0;
board/st/stm32mp1/stm32mp1.c +0 -0
index 07f5344ec9..053c5e1f07 100644

board/st/stm32mp1/stm32mp1.c int board_init(void) · line 653

Quoted 8 lines
board/st/stm32mp1/stm32mp1.c +1 -1
@@ -647,7 +647,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
 	return 0;

Thanks

Patrice

#3 lore raw

PATCH 1/1 board: stm32mp1: correct CONFIG_IS_ENABLED usage for LED

Hi

Quoted 44 lines · Patrice CHOTARD

Hi

Quoted 41 lines · Patrick Delaunay

Use the correct macro to test presence CONFIG_LED:
replace CONFIG_IS_ENABLED(CONFIG_LED) by CONFIG_IS_ENABLED(LED)

Issue see during review unrelated patch "board: stm32mp1: update management of boot-led"
http://patchwork.ozlabs.org/patch/1264823/

Cc Marek Vasut <[email protected]>
Cc Patrice Chotard <[email protected]>

---

 board/dhelectronics/dh_stm32mp1/board.c | 2 +-
 board/st/stm32mp1/stm32mp1.c            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
board/dhelectronics/dh_stm32mp1/board.c +1 -1
index 7bcd713a86..3c14d8206d 100644
@@ -398,7 +398,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
 	return 0;
board/st/stm32mp1/stm32mp1.c +1 -1
index 07f5344ec9..053c5e1f07 100644
@@ -647,7 +647,7 @@ int board_init(void)
 
 	sysconf_init();
 
-	if (CONFIG_IS_ENABLED(CONFIG_LED))
+	if (CONFIG_IS_ENABLED(LED))
 		led_default_state();
 
Quoted 6 lines

board/st/stm32mp1/stm32mp1.c int board_init(void) · line 653

Quoted 1 line
board/st/stm32mp1/stm32mp1.c +0 -0
 	return 0;

Thanks

Patrice

Applied to u-boot-stm/next

Thanks

Patrice

Quoted 4 lines

_______________________________________________
Uboot-stm32 mailing list
Uboot-stm32 at st-md-mailman.stormreply.com
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32