mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 15:13:31 +08:00
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>
This commit is contained in:
parent
5f4e32d058
commit
b35fb6ace6
@ -205,7 +205,7 @@ u32 get_board_rev(void)
|
||||
*/
|
||||
int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "physmap-flash.0", MTD_DEV_TYPE_NOR, }, /* NOR flash */
|
||||
{ "mxc_nand", MTD_DEV_TYPE_NAND, }, /* NAND flash */
|
||||
};
|
||||
|
@ -519,7 +519,7 @@ int cm_fx6_setup_ecspi(void) { return 0; }
|
||||
#ifdef CONFIG_OF_BOARD_SETUP
|
||||
#define USDHC3_PATH "/soc/aips-bus@02100000/usdhc@02198000/"
|
||||
|
||||
struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
/*
|
||||
* Both entries target the same flash chip. The st,m25p compatible
|
||||
* is used in the vendor device trees, while upstream uses (the
|
||||
|
@ -53,7 +53,7 @@ int checkboard(void)
|
||||
|
||||
#if defined(CONFIG_OF_BOARD_SETUP)
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "fsl,ifc-nand", MTD_DEV_TYPE_NAND, },
|
||||
};
|
||||
#endif
|
||||
|
@ -357,7 +357,7 @@ void fdt_del_node_compat(void *blob, const char *compatible)
|
||||
|
||||
#if defined(CONFIG_OF_BOARD_SETUP)
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "cfi-flash", MTD_DEV_TYPE_NOR, },
|
||||
{ "fsl,ifc-nand", MTD_DEV_TYPE_NAND, },
|
||||
};
|
||||
|
@ -1114,7 +1114,7 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
struct ventana_board_info *info = &ventana_info;
|
||||
struct ventana_eeprom_config *cfg;
|
||||
struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "sst,w25q256", MTD_DEV_TYPE_NOR, }, /* SPI flash */
|
||||
{ "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, }, /* NAND flash */
|
||||
};
|
||||
|
@ -211,7 +211,7 @@ int board_late_init(void)
|
||||
int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
static struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "ti,omap2-nand", MTD_DEV_TYPE_NAND, },
|
||||
};
|
||||
|
||||
|
@ -157,7 +157,7 @@ static int ft_enable_by_compatible(void *blob, char *compat, int enable)
|
||||
int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
static struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "ti,omap2-nand", MTD_DEV_TYPE_NAND, },
|
||||
{ "ti,omap2-onenand", MTD_DEV_TYPE_ONENAND, },
|
||||
};
|
||||
|
@ -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, },
|
||||
};
|
||||
|
@ -580,7 +580,7 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
int ret = 0;
|
||||
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
|
||||
static struct node_info nodes[] = {
|
||||
static const struct node_info nodes[] = {
|
||||
{ "fsl,vf610-nfc", MTD_DEV_TYPE_NAND, }, /* NAND flash */
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user