[2/5] mtd: nand: add fields for JEDEC in nand_chip
diff mbox

Message ID 1388121286-32620-3-git-send-email-b32955@freescale.com
State New, archived
Headers show

Commit Message

Huang Shijie Dec. 27, 2013, 5:14 a.m. UTC
Add the jedec_version field, and add a anonymous union which
contains the nand_onfi_params and nand_jedec_params.

Signed-off-by: Huang Shijie <b32955@freescale.com>
---
 include/linux/mtd/nand.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

Patch
diff mbox

diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 3dd27e8..13ae489 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -641,7 +641,11 @@  struct nand_chip {
 	int badblockbits;
 
 	int onfi_version;
-	struct nand_onfi_params	onfi_params;
+	int jedec_version;
+	union {
+		struct nand_onfi_params	onfi_params;
+		struct nand_jedec_params jedec_params;
+	};
 
 	flstate_t state;