Skip to content

Commit fda5b0e

Browse files
Huang Shijiecomputersforpeace
authored andcommitted
mtd: nand: add more comment for MTD_NANDFLASH/MTD_MLCNANDFLASH
In current code, the MTD_NANDFLASH is used to represent both the SLC and MLC. It is confusing to us. By adding an explicit comment about these two macros, this patch makes it clear that: MTD_NANDFLASH : stands for SLC NAND, MTD_MLCNANDFLASH : stands for MLC NAND (including TLC). Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
1 parent 7a2b89a commit fda5b0e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/uapi/mtd/mtd-abi.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ struct mtd_write_req {
9494
#define MTD_RAM 1
9595
#define MTD_ROM 2
9696
#define MTD_NORFLASH 3
97-
#define MTD_NANDFLASH 4
97+
#define MTD_NANDFLASH 4 /* SLC NAND */
9898
#define MTD_DATAFLASH 6
9999
#define MTD_UBIVOLUME 7
100-
#define MTD_MLCNANDFLASH 8
100+
#define MTD_MLCNANDFLASH 8 /* MLC NAND (including TLC) */
101101

102102
#define MTD_WRITEABLE 0x400 /* Device is writeable */
103103
#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */

0 commit comments

Comments
 (0)