diff options
author | Huang Shijie <b32955@freescale.com> | 2013-09-25 14:58:19 +0800 |
---|---|---|
committer | Huang Shijie <b32955@freescale.com> | 2013-12-03 11:07:05 +0800 |
commit | b2a5b16079133faf018f6800b5fa57d663db2686 (patch) | |
tree | 6925c4e2e98919045f8f7f765e25a7ca61158d46 | |
parent | 1971b86a4fdca38f59479ee2b8ce6b2d92c05738 (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>
(cherry picked from commit 7b692bf73a0069dec356a148ef5d0133790f6f84)
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-mtd | 2 | ||||
-rw-r--r-- | drivers/mtd/mtdcore.c | 3 |
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: One of the following ASCII strings, representing the device type: - absent, ram, rom, nor, nand, dataflash, ubi, unknown + absent, ram, rom, nor, nand, mlc-nand, dataflash, ubi, unknown What: /sys/class/mtd/mtdX/writesize Date: 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, case MTD_UBIVOLUME: type = "ubi"; break; + case MTD_MLCNANDFLASH: + type = "mlc-nand"; + break; default: type = "unknown"; } |