History

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).

Huang Shijie committed 13 years ago

Commit fda5b0e1 parent 7a2b89a1 file · +2 −2Browse files

Unified · Split

include/uapi/mtd/mtd-abi.h+2−2
@@ -94,10 +94,10 @@ struct mtd_write_req { · 93 unmodified lines
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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t