mtd: spinand: Implement mtd->_max_bad_blocks
authorBoris Brezillon <bbrezillon@kernel.org>
Sun, 4 Nov 2018 13:45:57 +0000 (14:45 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:10 +0000 (10:21 +0200)
commit509198485bf2600f4104fdf391b8632cf69f2dd8
tree3539d23e464f097b8cfda1979fd935c299ec4eff
parent46b01d7efda29356d4dff88825e5ef51dd9f6bae
mtd: spinand: Implement mtd->_max_bad_blocks

We just have to use nanddev_mtd_max_bad_blocks().

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
drivers/mtd/nand/spi/core.c