[PATCH 08/10] mtd: add MTD_MLCNANDFLASH case for mtd_type_show()
Huang Shijie
b32955 at freescale.com
Mon Aug 12 01:42:51 EDT 2013
The current mtd_type_show() misses the MTD_MLCNANDFLASH case.
This patch adds the case for it.
Signed-off-by: Huang Shijie <b32955 at freescale.com>
---
drivers/mtd/mtdcore.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 6aa952b..c7cee29 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -157,6 +157,9 @@ static ssize_t mtd_type_show(struct device *dev,
case MTD_UBIVOLUME:
type = "ubi";
break;
+ case MTD_MLCNANDFLASH:
+ type = "MLC nand";
+ break;
default:
type = "unknown";
}
--
1.7.1
More information about the linux-mtd
mailing list