[PATCH] NOR flash: reduce size of cfiword_t if not using 64-bit bus.

Krzysztof Halasa khc at pm.waw.pl
Sat May 5 17:35:10 EDT 2012

Signed-off-by: Krzysztof Hałasa <khc at pm.waw.pl>

diff --git a/drivers/nor/cfi_flash.h b/drivers/nor/cfi_flash.h
index df482b6..fec0894 100644
--- a/drivers/nor/cfi_flash.h
+++ b/drivers/nor/cfi_flash.h
@@ -30,7 +30,17 @@
 #include <linux/mtd/mtd.h>
 typedef unsigned long flash_sect_t;
 typedef u64 cfiword_t;
+typedef u32 cfiword_t;
+typedef u16 cfiword_t;
+typedef u8 cfiword_t;
 struct cfi_cmd_set;

More information about the barebox mailing list