mtd: rawnand: Get rid of chip->bits_per_cell
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 25 Oct 2018 15:16:47 +0000 (17:16 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:14 +0000 (10:21 +0200)
commit298151689b33e04eaf09cf22e1d42396f7723690
tree1a30b29c1632e6951cf804f4572689630fee03eb
parent7beb37e5f0d29d7d23aec0e47900ff4dfa8c2e55
mtd: rawnand: Get rid of chip->bits_per_cell

Now that we inherit from nand_device, we can use
nand_device->memorg.bits_per_cell instead of having our own field at
the nand_chip level.

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
drivers/mtd/nand/raw/nand_hynix.c
drivers/mtd/nand/raw/nand_jedec.c
drivers/mtd/nand/raw/nand_micron.c
drivers/mtd/nand/raw/nand_onfi.c
include/linux/mtd/rawnand.h