mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip
authorZach Brown <zach.brown@ni.com>
Tue, 10 Jan 2017 19:30:19 +0000 (13:30 -0600)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 8 Feb 2017 22:19:42 +0000 (14:19 -0800)
commitceb374eb06848212e47fb884964a3ae5e79615b5
treed3778ca1818c0ddadc4a5f37bdafa90f525e6b46
parente70dda0868fad0f74c46df21f7f45fec24f29879
mtd: nand: Add max_bb_per_die and blocks_per_die fields to nand_chip

The fields max_bb_per_die and blocks_per_die are useful determining the
number of bad blocks a MTD needs to allocate. How they are set will
depend on if the chip is ONFI, JEDEC or a full-id entry in the nand_ids
table.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electron.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
include/linux/mtd/nand.h