aboutsummaryrefslogtreecommitdiff
path: root/board/toradex/colibri_imx7
diff options
context:
space:
mode:
authorMasahiro Yamada2018-07-19 16:28:23 +0900
committerMasahiro Yamada2018-07-25 08:47:52 +0900
commitb35fb6ace67202b6f668f744f958a5ef66665151 (patch)
tree467fb4f842a3800469f32b180b2acbc403f60077 /board/toradex/colibri_imx7
parent5f4e32d058755a93a9cc43ea9998195a3ef13aa2 (diff)
board: constify struct node_info array
Add 'const' (also 'static' in some places) to struct node_info arrays to save memory footprint. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'board/toradex/colibri_imx7')
-rw-r--r--board/toradex/colibri_imx7/colibri_imx7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c
index f9f488db1ce..2210095d7a5 100644
--- a/board/toradex/colibri_imx7/colibri_imx7.c
+++ b/board/toradex/colibri_imx7/colibri_imx7.c
@@ -389,7 +389,7 @@ int checkboard(void)
int ft_board_setup(void *blob, bd_t *bd)
{
#if defined(CONFIG_FDT_FIXUP_PARTITIONS)
- static struct node_info nodes[] = {
+ static const struct node_info nodes[] = {
{ "fsl,imx7d-gpmi-nand", MTD_DEV_TYPE_NAND, }, /* NAND flash */
{ "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, },
};