]> www.infradead.org Git - mtd-utils.git/commit
flash_erase: check the nand type
authorHuang Shijie <b32955@freescale.com>
Thu, 24 Oct 2013 10:59:51 +0000 (18:59 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 24 Oct 2013 17:51:21 +0000 (10:51 -0700)
commit89c22de378aba3e57f15b57af464e34bc0d38291
tree9318f95f4d4666274c2cc3faf11da93a6b231bf8
parent263e138719f6358c3cf2ce47d6254cebef31dd4b
flash_erase: check the nand type

Now, the MTD_NANDFLASH stands for SLC nand, and the MTD_MLCNANDFLASH
stands for the MLC nand.

This patch includes the stdbool.h, and changes the "isNAND" to boolean type,
and checks the right nand type for the MLC and SLC nand.

If the user wants to format a MLC nand for JFFS2, we will print out a message
to warn him, and exit right now.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_erase.c