NOR flash: reduce size of cfiword_t if not using 64-bit bus.
This is done to reduce the binary size a bit. Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a42d8ce778
commit
254b183339
|
@ -30,7 +30,17 @@
|
|||
#include <linux/mtd/mtd.h>
|
||||
|
||||
typedef unsigned long flash_sect_t;
|
||||
|
||||
#if defined(CONFIG_DRIVER_CFI_BANK_WIDTH_8)
|
||||
typedef u64 cfiword_t;
|
||||
#elif defined(CONFIG_DRIVER_CFI_BANK_WIDTH_4)
|
||||
typedef u32 cfiword_t;
|
||||
#elif defined(CONFIG_DRIVER_CFI_BANK_WIDTH_2)
|
||||
typedef u16 cfiword_t;
|
||||
#else
|
||||
typedef u8 cfiword_t;
|
||||
#endif
|
||||
|
||||
struct cfi_cmd_set;
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue