summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-02-03 22:18:42 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-12 09:33:43 +0100
commit99bed342782b4cd0f3f9b943f858971c29936e10 (patch)
tree69b2e33bfe5475d614d63833c7aa43acccf49c91 /include
parent891e08b822e321879df24f0315fa3b6c7279d8a7 (diff)
downloadbarebox-99bed342782b4cd0f3f9b943f858971c29936e10.tar.gz
barebox-99bed342782b4cd0f3f9b943f858971c29936e10.tar.xz
mtd: Add partitions to list
So that we can iterate over the existing partitions from the master mtd device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 1d33592fef..72bd66b64a 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -220,6 +220,9 @@ struct mtd_info {
struct mtd_info *master;
loff_t master_offset;
+
+ struct list_head partitions;
+ struct list_head partitions_entry;
};
int mtd_erase(struct mtd_info *mtd, struct erase_info *instr);