[PATCH 09/10] mtd: add more information for the MTD_NANDFLASH case

Huang Shijie b32955 at freescale.com
Mon Aug 12 01:42:52 EDT 2013


In mtd_type_show(), the MTD_NANDFLASH case shows "nand".
In actually, the printed information is not accurate enough.
The MTD_NANDFLASH stands for SLC nand now.

This patch adds the SLC information for the MTD_NANDFLASH case.

Signed-off-by: Huang Shijie <b32955 at freescale.com>
---
 drivers/mtd/mtdcore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index c7cee29..78b8f2e 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -149,7 +149,7 @@ static ssize_t mtd_type_show(struct device *dev,
 		type = "nor";
 		break;
 	case MTD_NANDFLASH:
-		type = "nand";
+		type = "SLC nand";
 		break;
 	case MTD_DATAFLASH:
 		type = "dataflash";
-- 
1.7.1





More information about the linux-mtd mailing list