We currently use a ioctl API to manipulate UBI devices. This is suboptimal since we have to carry code for all ioctls with us, even when some of it may be unused. This series expands the UBI API with calls to add/remove volumes and uses it inside the UBI commands. The next step would be to move the commands to separate files and to make them Kconfig configurable individually. Sascha ---------------------------------------------------------------- Sascha Hauer (4): mtd: ubi: Add API calls to create/remove volumes mtd: ubi: introduce barebox specific ioctl to get ubi_num mtd: ubi: commands: use function API to access ubi volumes mtd: ubi: remove now unused ioctls commands/ubi.c | 40 +++++++++++++++++++++++++++++++--------- drivers/mtd/ubi/barebox.c | 43 ++++++++++++++++++++++++++++++------------- include/linux/mtd/ubi.h | 3 +++ include/mtd/ubi-user.h | 2 ++ 4 files changed, 66 insertions(+), 22 deletions(-) _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox