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>
This commit is contained in:
Huang Shijie 2013-09-25 14:58:19 +08:00 committed by Brian Norris
parent 4f8a3ba700
commit f48372465f
2 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,7 @@ Description:
One of the following ASCII strings, representing the device One of the following ASCII strings, representing the device
type: 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 What: /sys/class/mtd/mtdX/writesize
Date: April 2009 Date: April 2009

View File

@ -157,6 +157,9 @@ static ssize_t mtd_type_show(struct device *dev,
case MTD_UBIVOLUME: case MTD_UBIVOLUME:
type = "ubi"; type = "ubi";
break; break;
case MTD_MLCNANDFLASH:
type = "mlc-nand";
break;
default: default:
type = "unknown"; type = "unknown";
} }