diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-03-19 04:29:26 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 08:21:41 -0400 |
commit | 5bfa9b71a2d6642506e2dfdf49a66620f54f1d92 (patch) | |
tree | 92f3fb5b82c858b39db9a30499ed089df7dcc822 /include/linux/mtd/nand.h | |
parent | 92a2645820d8ab97bc9cf74648dc0fbba652f3d2 (diff) |
mtd: nand_ids: improve LEGACY_ID_NAND macro a bit
Notice that all the flashes belonging to the "legacy ID" class have 512 bytes
NAND page. This means we may simplify the 'LEGACY_ID_NAND()' macro as well as
the NAND ID table a little.
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/nand.h')
-rw-r--r-- | include/linux/mtd/nand.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 13786f0ae12a..ebf970e11428 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h | |||
@@ -552,12 +552,11 @@ struct nand_chip { | |||
552 | /* | 552 | /* |
553 | * A helper for defining older NAND chips where the second ID byte fully | 553 | * A helper for defining older NAND chips where the second ID byte fully |
554 | * defined the chip, including the geometry (chip size, eraseblock size, page | 554 | * defined the chip, including the geometry (chip size, eraseblock size, page |
555 | * size). | 555 | * size). All these chips have 512 bytes NAND page size. |
556 | */ | 556 | */ |
557 | #define LEGACY_ID_NAND(nm, devid, pagesz, chipsz, erasesz, opts) \ | 557 | #define LEGACY_ID_NAND(nm, devid, chipsz, erasesz, opts) \ |
558 | { .name = (nm), {{ .dev_id = (devid) }}, .pagesize = (pagesz), \ | 558 | { .name = (nm), {{ .dev_id = (devid) }}, .pagesize = 512, \ |
559 | .chipsize = (chipsz), .erasesize = (erasesz), \ | 559 | .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) } |
560 | .options = (opts) } | ||
561 | 560 | ||
562 | /* | 561 | /* |
563 | * A helper for defining newer chips which report their page size and | 562 | * A helper for defining newer chips which report their page size and |