aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2013-09-25 02:58:19 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:47:25 -0400
commit077b24de57070a908bd094903f2b89619309f278 (patch)
treefe64aa7b5869e0ec79a4f263ca8152b807c44c7d
parent126d0d3a4d6e61eae41c64f624c59dc683af6aff (diff)
mtd: add MTD_MLCNANDFLASH case for mtd_type_show()
The current mtd_type_show() misses the MTD_MLCNANDFLASH case. This patch adds the case for it, and also updates the ABI. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--Documentation/ABI/testing/sysfs-class-mtd2
-rw-r--r--drivers/mtd/mtdcore.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd
index bfd119ace6ad..1399bb2da3eb 100644
--- a/Documentation/ABI/testing/sysfs-class-mtd
+++ b/Documentation/ABI/testing/sysfs-class-mtd
@@ -104,7 +104,7 @@ Description:
104 One of the following ASCII strings, representing the device 104 One of the following ASCII strings, representing the device
105 type: 105 type:
106 106
107 absent, ram, rom, nor, nand, dataflash, ubi, unknown 107 absent, ram, rom, nor, nand, mlc-nand, dataflash, ubi, unknown
108 108
109What: /sys/class/mtd/mtdX/writesize 109What: /sys/class/mtd/mtdX/writesize
110Date: April 2009 110Date: April 2009
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index d813c6c6b362..e5f17b3e0ed5 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -157,6 +157,9 @@ static ssize_t mtd_type_show(struct device *dev,
157 case MTD_UBIVOLUME: 157 case MTD_UBIVOLUME:
158 type = "ubi"; 158 type = "ubi";
159 break; 159 break;
160 case MTD_MLCNANDFLASH:
161 type = "mlc-nand";
162 break;
160 default: 163 default:
161 type = "unknown"; 164 type = "unknown";
162 } 165 }