mtd: ubi: Add API calls to create/remove volumes
Currently we use a ioctl API to create/remove ubi volumes. This
means we always have to carry all function code for ubi volume
manipulation when the ioctl is compiled in.
This adds a function API to create/remove volumes so that the linker
can throw the unused code away later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d549e5d commit 85dccb92982450cacc0d7dd393f16778388582a6
@Sascha Hauer Sascha Hauer authored on 22 Sep 2016
Showing 2 changed files
View
drivers/mtd/ubi/barebox.c
View
include/linux/mtd/ubi.h