mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 26 Jul 2018 23:18:05 +0000 (01:18 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:04 +0000 (09:46 +0200)
commitfe13ae02b07a1d14f47b0cbd63bc624b5f3cb890
tree8ab2950f7275059cafb86c0643efd891a27faa37
parent92aa292d2e47be6210c0ba6074fc0ddfc02f7856
mtd: rawnand: sm_common: convert driver to nand_scan_with_ids()

Two helpers have been added to the core to do all kind of controller
side configuration/initialization between the detection phase and the
final NAND scan. Implement these hooks so that we can convert the driver
to just use nand_scan_with_ids() (alternative to nand_scan() for passing
a flash IDs table) instead of the nand_scan_ident() + nand_scan_tail()
pair.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/nand/raw/sm_common.c