From 05be9036220af61ee8d93f0197a05251e840c852 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 14 Mar 2016 12:44:22 +0100 Subject: mtd: ubi: Add function to get ubi number from mtd device Signed-off-by: Sascha Hauer --- include/mtd/ubi-user.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mtd') diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h index 2002548526..8c02f96e4c 100644 --- a/include/mtd/ubi-user.h +++ b/include/mtd/ubi-user.h @@ -407,5 +407,6 @@ struct ubi_set_vol_prop_req { int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset, int max_beb_per1024); int ubi_detach(int ubi_num); +int ubi_num_get_by_mtd(struct mtd_info *mtd); #endif /* __UBI_USER_H__ */ -- cgit v1.2.3