diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-23 11:37:05 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-23 11:37:05 +0300 |
commit | 257ad252e70a7b65f11f7f006416a76e4498f3d2 (patch) | |
tree | ce2396403f1f19d4feaa3ef0c33d57bb2cfde365 /ubi-utils/include/libubi.h | |
parent | 24c95043a1fd464388563f31b5f40831f74e04b3 (diff) |
libubi: kill ubi_attach_mtd
The 'ubi_attach_mtd()' is not used and it is redundant now. 'ubi_attach()'
function may be used instead.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'ubi-utils/include/libubi.h')
-rw-r--r-- | ubi-utils/include/libubi.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/ubi-utils/include/libubi.h b/ubi-utils/include/libubi.h index bbaa78c..62fb5dd 100644 --- a/ubi-utils/include/libubi.h +++ b/ubi-utils/include/libubi.h @@ -210,28 +210,14 @@ int ubi_get_info(libubi_t desc, struct ubi_info *info); int mtd_num2ubi_dev(libubi_t desc, int mtd_num, int *dev_num); /** - * ubi_attach_mtd - attach MTD device to UBI. - * @desc: UBI library descriptor - * @node: name of the UBI control character device node - * @req: MTD attach request. - * - * This function creates a new UBI device by attaching an MTD device as - * described by @req. Returns %0 in case of success and %-1 in case of failure. - * The newly created UBI device number is returned in @req->dev_num. - */ -int ubi_attach_mtd(libubi_t desc, const char *node, - struct ubi_attach_request *req); - -/** - * ubi_attach - attach an MTD device by its node path. + * ubi_attach - attach an MTD device by its node path or bt MTD device number * @desc: UBI library descriptor * @node: name of the UBI control character device node * @req: MTD attach request * * This function creates new UBI device by attaching an MTD device described by * @req. If @req->mtd_dev_node is given it should contain path to the MTD - * device node. Otherwise functionality is similar than in function - * 'ubi_attach_mtd()' where @req->mtd_num is used. + * device node. Otherwise @req->mtd_num will be used. * * Returns %0 in case of success and %-1 in case of failure (errno is set). * The newly created UBI device number is returned in @req->dev_num. |