OSDN Git Service

mtd: rawnand: Hide the chip->data_interface indirection
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 11:13:12 +0000 (13:13 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:06 +0000 (08:35 +0200)
commite0160cd41fb81fde9ee4612a7ea2dfd631de2638
tree2969b088000602d771707dbf4d55c5f52c082a8a
parentd1bfe1e31932822ee90fc6b4cdeae785f70b3650
mtd: rawnand: Hide the chip->data_interface indirection

As a preparation for allocating the data interface structure
dynamically (and rename it), let's avoid accessing
chip->data_interface directly.

Instead, we introduce a helper, nand_get_interface_config(), and use
it to retrieve the current data interface configuration out of a
nand_chip object.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529111322.7184-19-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/marvell_nand.c
drivers/mtd/nand/raw/meson_nand.c
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/nand/raw/nand_legacy.c
drivers/mtd/nand/raw/nand_toshiba.c
drivers/mtd/nand/raw/stm32_fmc2_nand.c
drivers/mtd/nand/raw/tango_nand.c
include/linux/mtd/rawnand.h