mtd: rawnand: allocate dynamically ONFI parameters during detection
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 25 Jul 2018 13:31:52 +0000 (15:31 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 1 Aug 2018 07:45:59 +0000 (09:45 +0200)
commit3d3fe3c05d5a17ebdf55b936c51017c127c0ed44
tree82015f37c2af2e3563a6118d378e28a31b73c991
parent2023f1fa216f30b1877d65be2057fbaf0bbd49b3
mtd: rawnand: allocate dynamically ONFI parameters during detection

Now that it is possible to do dynamic allocations during the
identification phase, convert the onfi_params structure (which is only
needed with ONFI compliant chips) into a pointer that will be allocated
only if needed.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/nand/raw/nand_micron.c
drivers/mtd/nand/raw/nand_timings.c
include/linux/mtd/rawnand.h