diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-03-13 07:45:00 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 08:15:00 -0400 |
| commit | ecb42fea59cf2d1e7160c5c7e707120e0e6714db (patch) | |
| tree | 0692bedc13568083615385f997a41342de879190 /include/linux/mtd | |
| parent | 97135118bd6a5fb86a7e3a28a50de10b97192ced (diff) | |
mtd: nand: use more reasonable integer types
Use 'unsigned int' instead of 'unsigned long' in the NAND chip description data
structure, because 32-bits is more than enough for our purposes. We do not need
64-bits, which is what we end up on 64-bit architectures. We declare many
instances of this data structure, so this should help saving some amount of
memory.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/nand.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 9a1b74c85044..d5903c0a0fe7 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
| @@ -582,8 +582,8 @@ struct nand_chip { | |||
| 582 | * @pagesize: size of the NAND page in bytes; if 0, then the real page size (as | 582 | * @pagesize: size of the NAND page in bytes; if 0, then the real page size (as |
| 583 | * well as the eraseblock size) is determined from the extended NAND | 583 | * well as the eraseblock size) is determined from the extended NAND |
| 584 | * chip ID array) | 584 | * chip ID array) |
| 585 | * @erasesize: eraseblock size in bytes (determined from the extended ID if 0) | ||
| 586 | * @chipsize: total chip size in MiB | 585 | * @chipsize: total chip size in MiB |
| 586 | * @erasesize: eraseblock size in bytes (determined from the extended ID if 0) | ||
| 587 | * @options: stores various chip bit options | 587 | * @options: stores various chip bit options |
| 588 | */ | 588 | */ |
| 589 | struct nand_flash_dev { | 589 | struct nand_flash_dev { |
| @@ -595,10 +595,10 @@ struct nand_flash_dev { | |||
| 595 | }; | 595 | }; |
| 596 | uint8_t id[8]; | 596 | uint8_t id[8]; |
| 597 | }; | 597 | }; |
| 598 | unsigned long pagesize; | 598 | unsigned int pagesize; |
| 599 | unsigned long chipsize; | 599 | unsigned int chipsize; |
| 600 | unsigned long erasesize; | 600 | unsigned int erasesize; |
| 601 | unsigned long options; | 601 | unsigned int options; |
| 602 | }; | 602 | }; |
| 603 | 603 | ||
| 604 | /** | 604 | /** |
