From 2e4fe96b2bc5ad33793d0d5cbeb23c9f76155211 Mon Sep 17 00:00:00 2001 From: Huang Shijie Date: Tue, 20 Aug 2013 13:58:34 +0800 Subject: add the MTD_MLCNANDFLASH case The MTD_MLCNANDFLASH case is missed in the current code. This patch adds it. Signed-off-by: Huang Shijie Signed-off-by: Brian Norris --- lib/libmtd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libmtd.c') diff --git a/lib/libmtd.c b/lib/libmtd.c index 654490e..3e8109a 100644 --- a/lib/libmtd.c +++ b/lib/libmtd.c @@ -403,6 +403,8 @@ static int type_str2int(const char *str) { if (!strcmp(str, "nand")) return MTD_NANDFLASH; + if (!strcmp(str, "mlc-nand")) + return MTD_MLCNANDFLASH; if (!strcmp(str, "nor")) return MTD_NORFLASH; if (!strcmp(str, "rom")) -- cgit v1.2.3