OSDN Git Service

mtd: rawnand: Move all page cache related fields to a sub-struct
authorBoris Brezillon <bbrezillon@kernel.org>
Sun, 28 Oct 2018 15:12:45 +0000 (16:12 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:13 +0000 (10:21 +0200)
commitd974541e23791e189c5faa0462223d29352cecc6
tree3f21bd55ecf2e3513c7fff8f061d4bd36bde80f9
parenteeab717483e5fb529c8001d36fbda14011905e5f
mtd: rawnand: Move all page cache related fields to a sub-struct

Looking at the field names it's hard to tell what ->data_buf, ->pagebuf
and ->pagebuf_bitflips are for. Clarify that by moving those fields
in a sub-struct named pagecache.

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/raw/nand_base.c
include/linux/mtd/rawnand.h