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
94#define MTD_RAM 194#define MTD_RAM 1
95#define MTD_ROM 295#define MTD_ROM 2
96#define MTD_NORFLASH 396#define MTD_NORFLASH 3
97#define MTD_NANDFLASH 497#define MTD_NANDFLASH 4 /* SLC NAND */
98#define MTD_DATAFLASH 698#define MTD_DATAFLASH 6
99#define MTD_UBIVOLUME 799#define MTD_UBIVOLUME 7
100#define MTD_MLCNANDFLASH 8100#define MTD_MLCNANDFLASH 8 /* MLC NAND (including TLC) */
101 101
102#define MTD_WRITEABLE 0x400 /* Device is writeable */102#define MTD_WRITEABLE 0x400 /* Device is writeable */
103#define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */103#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