mtd: add MTD_MLCNANDFLASH case for mtd_type_show()
authorHuang Shijie <b32955@freescale.com>
Wed, 25 Sep 2013 06:58:19 +0000 (14:58 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:06 +0000 (16:27 -0700)
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>
Documentation/ABI/testing/sysfs-class-mtd
drivers/mtd/mtdcore.c

index bfd119ace6ad00c2ee56c4c16b25a78ec6b5d7f0..1399bb2da3ebf762ffd0c392c07121d1687ee1dd 100644 (file)
@@ -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
index 5e14d540ba2f623abb6438c4b6c204b991ed260b..92311a56939fca8d53e05e178054520f80b3bcec 100644 (file)
@@ -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";
        }