]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Prepare things to reuse the generic NAND layer
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 25 Oct 2018 13:21:08 +0000 (15:21 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:11 +0000 (10:21 +0200)
commit9848052c6e4a62b52af6e3cba9ac8f620a9a50df
tree99bb8c2b82ec7e76554c31c9707866a00497ca2b
parent908903981d8575910fe972da802bc412200938c1
mtd: rawnand: Prepare things to reuse the generic NAND layer

The generic NAND layer provides abstraction of NAND devices no matter
the bus that is used to communicate with the chip. Basing the raw NAND
core on this generic layer should avoid duplication of common
operations, like iterating over all pages/blocks for MTD IO/erase
operations.

In order to re-use this layer, we must first inherit from nand_device
and then initialize the nand_device struct appropriately. This patch
is taking care of the former.

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/rawnand.h