hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/linux/mtd/partitions.h
....@@ -37,6 +37,7 @@
3737 * master MTD flag set for the corresponding MTD partition.
3838 * For example, to force a read-only partition, simply adding
3939 * MTD_WRITEABLE to the mask_flags will do the trick.
40
+ * add_flags: contains flags to add to the parent flags
4041 *
4142 * Note: writeable partitions require their size and offset be
4243 * erasesize aligned (e.g. use MTDPART_OFS_NEXTBLK).
....@@ -48,6 +49,7 @@
4849 uint64_t size; /* partition size */
4950 uint64_t offset; /* offset within the master MTD space */
5051 uint32_t mask_flags; /* master MTD flags to mask out for this partition */
52
+ uint32_t add_flags; /* flags to add to the partition */
5153 struct device_node *of_node;
5254 };
5355
....@@ -105,7 +107,6 @@
105107 module_driver(__mtd_part_parser, register_mtd_parser, \
106108 deregister_mtd_parser)
107109
108
-int mtd_is_partition(const struct mtd_info *mtd);
109110 int mtd_add_partition(struct mtd_info *master, const char *name,
110111 long long offset, long long length);
111112 int mtd_del_partition(struct mtd_info *master, int partno);