Skip to content
Commit 2a74930d authored by Miquel Raynal's avatar Miquel Raynal Committed by Jagan Teki
Browse files

mtd: mtdpart: 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.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent ff4afa8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment