From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14] helo=tx2outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VBFJJ-0004f6-0c for linux-mtd@lists.infradead.org; Mon, 19 Aug 2013 02:35:13 +0000 From: Huang Shijie To: Subject: [PATCH v2 5/9] mtd: add more comment for MTD_NANDFLASH/MTD_MLCNANDFLASH Date: Mon, 19 Aug 2013 10:31:14 +0800 Message-ID: <1376879478-22128-6-git-send-email-b32955@freescale.com> In-Reply-To: <1376879478-22128-1-git-send-email-b32955@freescale.com> References: <1376879478-22128-1-git-send-email-b32955@freescale.com> MIME-Version: 1.0 Content-Type: text/plain Cc: dedekind1@gmail.com, akinobu.mita@gmail.com, matthieu.castet@parrot.com, Huang Shijie , linux-mtd@lists.infradead.org, computersforpeace@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , In current code, the MTD_NANDFLASH is used to represent both the SLC and MLC. It is confusing to us. By adding an explict 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 --- include/uapi/mtd/mtd-abi.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h index 36eace0..16a9406 100644 --- a/include/uapi/mtd/mtd-abi.h +++ b/include/uapi/mtd/mtd-abi.h @@ -94,10 +94,10 @@ struct mtd_write_req { #define MTD_RAM 1 #define MTD_ROM 2 #define MTD_NORFLASH 3 -#define MTD_NANDFLASH 4 +#define MTD_NANDFLASH 4 /* stand for SLC nand */ #define MTD_DATAFLASH 6 #define MTD_UBIVOLUME 7 -#define MTD_MLCNANDFLASH 8 +#define MTD_MLCNANDFLASH 8 /* stand for MLC nand(including TLC) */ #define MTD_WRITEABLE 0x400 /* Device is writeable */ #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ -- 1.7.1