All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: stm32mp1: use const for struct node_info
@ 2020-07-29 11:24 Patrick Delaunay
  2020-08-13  7:46 ` [Uboot-stm32] " Patrice CHOTARD
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Delaunay @ 2020-07-29 11:24 UTC (permalink / raw)
  To: u-boot

Use const for the variable nodes in ft_board_setup,
this patch follow fdt_fixup_mtdparts prototype and no more use stack.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 board/st/stm32mp1/stm32mp1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 1d274c3157..68c4a221da 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -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, },
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Uboot-stm32] [PATCH] board: stm32mp1: use const for struct node_info
  2020-07-29 11:24 [PATCH] board: stm32mp1: use const for struct node_info Patrick Delaunay
@ 2020-08-13  7:46 ` Patrice CHOTARD
  2020-08-13  9:56   ` Patrice CHOTARD
  0 siblings, 1 reply; 3+ messages in thread
From: Patrice CHOTARD @ 2020-08-13  7:46 UTC (permalink / raw)
  To: u-boot

Hi Patrick

On 7/29/20 1:24 PM, Patrick Delaunay wrote:
> Use const for the variable nodes in ft_board_setup,
> this patch follow fdt_fixup_mtdparts prototype and no more use stack.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  board/st/stm32mp1/stm32mp1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
> index 1d274c3157..68c4a221da 100644
> --- a/board/st/stm32mp1/stm32mp1.c
> +++ b/board/st/stm32mp1/stm32mp1.c
> @@ -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 <patrice.chotard@st.com>

Thanks

Patrice

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Uboot-stm32] [PATCH] board: stm32mp1: use const for struct node_info
  2020-08-13  7:46 ` [Uboot-stm32] " Patrice CHOTARD
@ 2020-08-13  9:56   ` Patrice CHOTARD
  0 siblings, 0 replies; 3+ messages in thread
From: Patrice CHOTARD @ 2020-08-13  9:56 UTC (permalink / raw)
  To: u-boot


On 8/13/20 9:46 AM, Patrice CHOTARD wrote:
> Hi Patrick
>
> On 7/29/20 1:24 PM, Patrick Delaunay wrote:
>> Use const for the variable nodes in ft_board_setup,
>> this patch follow fdt_fixup_mtdparts prototype and no more use stack.
>>
>> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
>> ---
>>
>>  board/st/stm32mp1/stm32mp1.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied on u-boot-stm/master

Thanks

>>
>> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
>> index 1d274c3157..68c4a221da 100644
>> --- a/board/st/stm32mp1/stm32mp1.c
>> +++ b/board/st/stm32mp1/stm32mp1.c
>> @@ -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 <patrice.chotard@st.com>
>
> Thanks
>
> Patrice
> _______________________________________________
> Uboot-stm32 mailing list
> Uboot-stm32 at st-md-mailman.stormreply.com
> https://st-md-mailman.stormreply.com/mailman/listinfo/uboot-stm32

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-13  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 11:24 [PATCH] board: stm32mp1: use const for struct node_info Patrick Delaunay
2020-08-13  7:46 ` [Uboot-stm32] " Patrice CHOTARD
2020-08-13  9:56   ` Patrice CHOTARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.