board: stm32mp1: use const for struct node_info
PATCH 1/1 board: stm32mp1: use const for struct node_info
Use const for the variable nodes in ft_board_setup,
this patch follow fdt_fixup_mtdparts prototype and no more use stack.
---
board/st/stm32mp1/stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/st/stm32mp1/stm32mp1.c +1 -1
@@ -847,7 +847,7 @@ int mmc_get_env_dev(void)int ft_board_setup (void *blob,struct bd_info *bd) {#ifdef CONFIG_FDT_FIXUP_PARTITIONS -struct node_info nodes[] = { +static const struct node_info nodes[] = { {"st,stm32f469-qspi" ,MTD_DEV_TYPE_NOR , }, {"st,stm32f469-qspi" ,MTD_DEV_TYPE_SPINAND }, { "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
Signature · 1 line
2.17.1
PATCH 1/1 board: stm32mp1: use const for struct node_info
Hi Patrick
Quoted 14 lines · Patrick Delaunay
Use const for the variable nodes in
ft_board_setup,
this patch followfdt_fixup_mtdpartsprototype and no more use stack.Signed-off-by Patrick Delaunay <[email protected]>---
board/st/stm32mp1/stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/st/stm32mp1/stm32mp1.c +0
-0
board/st/stm32mp1/stm32mp1.c int mmc_get_env_dev(void) · line 853
Quoted 8 lines
board/st/stm32mp1/stm32mp1.c +1
-1@@ -847,7 +847,7 @@ int mmc_get_env_dev(void)int ft_board_setup (void *blob,struct bd_info *bd) {#ifdef CONFIG_FDT_FIXUP_PARTITIONS -struct node_info nodes[] = { +static const struct node_info nodes[] = { {"st,stm32f469-qspi" ,MTD_DEV_TYPE_NOR , }, {"st,stm32f469-qspi" ,MTD_DEV_TYPE_SPINAND }, { "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },
Thanks
Patrice
PATCH 1/1 board: stm32mp1: use const for struct node_info
Quoted 11 lines · Patrice CHOTARD
Hi Patrick
Quoted 8 lines · Patrick Delaunay
Use const for the variable nodes in
ft_board_setup,
this patch followfdt_fixup_mtdpartsprototype and no more use stack.Signed-off-by Patrick Delaunay <[email protected]>---
board/st/stm32mp1/stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied on u-boot-stm/master
Thanks
Quoted 23 lines
Quoted 6 lines
board/st/stm32mp1/stm32mp1.c +0
-0board/st/stm32mp1/stm32mp1.c int mmc_get_env_dev(void) · line 853
Quoted 8 lines
board/st/stm32mp1/stm32mp1.c +1
-1@@ -847,7 +847,7 @@ int mmc_get_env_dev(void)int ft_board_setup (void *blob,struct bd_info *bd) {#ifdef CONFIG_FDT_FIXUP_PARTITIONS -struct node_info nodes[] = { +static const struct node_info nodes[] = { {"st,stm32f469-qspi" ,MTD_DEV_TYPE_NOR , }, {"st,stm32f469-qspi" ,MTD_DEV_TYPE_SPINAND }, { "st,stm32mp15-fmc2", MTD_DEV_TYPE_NAND, },Reviewed-by Patrice Chotard <[email protected]>Thanks
Patrice
_______________________________________________
Uboot-stm32 mailing list
Uboot-stm32 at st-md-mailman.stormreply.com
https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32