Skip to contentSkip to conversation

NAND: Provide a sane default for NAND_MAX_CHIPS.

PATCH New Scott Wood 2 participants 2 messages May 19, 2008 – May 22, 2008

Subsystems (2)
lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 NAND: Provide a sane default for NAND_MAX_CHIPS.

This allows the header to be included regardless of whether a board's config file provides NAND-related defininitions.

---
 include/linux/mtd/nand.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/mtd/nand.h +4 -0
index 4cc4a7d..e2a25a6 100644
@@ -385,6 +385,10 @@ struct nand_manufacturers {
 extern struct nand_flash_dev nand_flash_ids[];
 extern struct nand_manufacturers nand_manuf_ids[];
 
+#ifndef NAND_MAX_CHIPS
+#define NAND_MAX_CHIPS 8
+#endif
+
 /**
  * struct nand_bbt_descr - bad block table descriptor
  * @options:	options for this descriptor
Signature · 1 line
1.5.3
#1 lore raw

PATCH 1/1 NAND: Provide a sane default for NAND_MAX_CHIPS.

Quoted 13 lines · Scott Wood

This allows the header to be included regardless of whether a board's config file provides NAND-related defininitions.

---
 include/linux/mtd/nand.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
include/linux/mtd/nand.h +0 -0
index 4cc4a7d..e2a25a6 100644

include/linux/mtd/nand.h struct nand_manufacturers { · line 394

Quoted 10 lines
include/linux/mtd/nand.h +4 -0
@@ -385,6 +385,10 @@ struct nand_manufacturers {
 extern struct nand_flash_dev nand_flash_ids[];
 extern struct nand_manufacturers nand_manuf_ids[];
 
+#ifndef NAND_MAX_CHIPS
+#define NAND_MAX_CHIPS 8
+#endif
+
 /**
  * struct nand_bbt_descr - bad block table descriptor
  * @options:	options for this descriptor

Works for me, though I just checked it builds fine.