[PATCH 05/12] mtd: Allow for a longer mtdparts table

Maxime Ripard maxime at cerno.tech
Fri Jun 25 15:05:40 CEST 2021


20 characters is fairly short for a partition table, let's increase it a
bit.

Signed-off-by: Maxime Ripard <maxime at cerno.tech>
---
 drivers/mtd/mtd_uboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c
index c53ec657a34d..3b54d0ba6e95 100644
--- a/drivers/mtd/mtd_uboot.c
+++ b/drivers/mtd/mtd_uboot.c
@@ -15,7 +15,7 @@
 #include <asm/global_data.h>
 #include <mtd.h>
 
-#define MTD_NAME_MAX_LEN 20
+#define MTD_NAME_MAX_LEN 64
 
 void board_mtdparts_default(const char **mtdids, const char **mtdparts);
 
-- 
2.31.1



More information about the U-Boot mailing list