mtd: nand: Add a helper returning the number of eraseblocks per target
authorBoris Brezillon <bbrezillon@kernel.org>
Mon, 29 Oct 2018 09:29:48 +0000 (10:29 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:09 +0000 (10:21 +0200)
commit7c4ecca103b3d70c50adc693c9f5d39d292e13e0
treec2a12299a0ffd89fbf3ab1150c2525da8378d083
parent377e517b5fa53590418a7b4c2206082d92434fa3
mtd: nand: Add a helper returning the number of eraseblocks per target

Some drivers in the raw NAND framework seems to need this helper, so
let's just add it instead of open-coding the logic.

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>
include/linux/mtd/nand.h