twx-linux/include/linux/mtd
Miquel Raynal 46b5889cc2 mtd: implement proper partition handling
Instead of collecting partitions in a flat list, create a hierarchy
within the mtd_info structure: use a partitions list to keep track of
the partitions of an MTD device (which might be itself a partition of
another MTD device), a pointer to the parent device (NULL when the MTD
device is the root one, not a partition).

By also saving directly in mtd_info the offset of the partition, we
can get rid of the mtd_part structure.

While at it, be consistent in the naming of the mtd_info structures to
ease the understanding of the new hierarchy: these structures are
usually called 'mtd', unless there are multiple instances of the same
structure. In this case, there is usually a parent/child bound so we
will call them 'parent' and 'child'.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200114090952.11232-1-miquel.raynal@bootlin.com
2020-03-11 14:49:30 +01:00
..
bbm.h
blktrans.h
cfi_endian.h
cfi.h
concat.h
doc2000.h
flashchip.h mtd: onenand: omap2: Fix errors in style 2020-01-09 20:08:15 +01:00
ftl.h
gen_probe.h
hyperbus.h
inftl.h
jedec.h
latch-addr-flash.h
lpc32xx_mlc.h
lpc32xx_slc.h
map.h
mtd.h mtd: implement proper partition handling 2020-03-11 14:49:30 +01:00
mtdram.h
nand_bch.h
nand_ecc.h
nand-gpio.h
nand.h
ndfc.h
nftl.h
onenand_regs.h
onenand.h
onfi.h
partitions.h mtd: implement proper partition handling 2020-03-11 14:49:30 +01:00
pfow.h
physmap.h
pismo.h
plat-ram.h
platnand.h
qinfo.h
rawnand.h
sh_flctl.h
sharpsl.h
spear_smi.h
spi-nor.h mtd: spi-nor: remove unused enum spi_nor_ops 2020-01-14 19:28:00 +02:00
spinand.h
super.h
ubi.h
xip.h