diff options
author | Roman Tereshonkov <roman.tereshonkov@nokia.com> | 2010-09-17 13:31:41 +0300 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-10-25 00:47:37 +0100 |
commit | 5daa7b21496aebf057c12be03038e7220e33353b (patch) | |
tree | 7ec8f8a086dcfdcb7aec800bf528d3704bcaadc8 /include | |
parent | 93ac5a552c831096003f9bc74471300dc1710a42 (diff) | |
download | kernel_samsung_crespo-5daa7b21496aebf057c12be03038e7220e33353b.zip kernel_samsung_crespo-5daa7b21496aebf057c12be03038e7220e33353b.tar.gz kernel_samsung_crespo-5daa7b21496aebf057c12be03038e7220e33353b.tar.bz2 |
mtd: prepare partition add and del functions for ioctl requests
mtd_is_master, mtd_add_partition and mtd_del_partition functions
are added to give the possibility of partition manipulation
by ioctl request.
The old partition add function is modified to fit the dynamic
allocation.
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/partitions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index 930c8ac..2b54316 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h @@ -89,4 +89,9 @@ static inline int mtd_has_cmdlinepart(void) { return 1; } static inline int mtd_has_cmdlinepart(void) { return 0; } #endif +int mtd_is_master(struct mtd_info *mtd); +int mtd_add_partition(struct mtd_info *master, char *name, + long long offset, long long length); +int mtd_del_partition(struct mtd_info *master, int partno); + #endif |