diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-26 10:31:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-06 10:17:52 +0200 |
commit | 1d88c6697722806d6c16bfadffb7c3c4d666e8e5 (patch) | |
tree | ebb966113ddc776d1723f669ac2213a53e517692 /include/mtd | |
parent | eef520a32b72606793cd02b2af57e559c64f8620 (diff) | |
download | barebox-1d88c6697722806d6c16bfadffb7c3c4d666e8e5.tar.gz barebox-1d88c6697722806d6c16bfadffb7c3c4d666e8e5.tar.xz |
ubiformat: Use mtd-peb API
This changes ubiformat from the libmtd API to the mtd-peb API. This
makes the libmtd API unnecessary and it can be removed in the next
step.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/libscan.h | 3 | ||||
-rw-r--r-- | include/mtd/libubigen.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/mtd/libscan.h b/include/mtd/libscan.h index bb01482036..e925a26ad2 100644 --- a/include/mtd/libscan.h +++ b/include/mtd/libscan.h @@ -84,12 +84,11 @@ struct mtd_dev_info; /** * ubi_scan - scan an MTD device. * @mtd: information about the MTD device to scan - * @fd: MTD device node file descriptor * @info: the result of the scanning is returned here * @verbose: verbose mode: %0 - be silent, %1 - output progress information, * 2 - debugging output mode */ -int libscan_ubi_scan(struct mtd_dev_info *mtd, int fd, struct ubi_scan_info **info, +int libscan_ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose); /** diff --git a/include/mtd/libubigen.h b/include/mtd/libubigen.h index f05978b329..266f393a9d 100644 --- a/include/mtd/libubigen.h +++ b/include/mtd/libubigen.h @@ -170,13 +170,13 @@ int ubigen_write_volume(const struct ubigen_info *ui, * @ec1: erase counter value for @peb1 * @ec2: erase counter value for @peb1 * @vtbl: volume table - * @fd: output file descriptor seeked to the proper position + * @mtd: The mtd device * * This function creates the UBI layout volume which contains 2 copies of the * volume table. Returns zero in case of success and %-1 in case of failure. */ int ubigen_write_layout_vol(const struct ubigen_info *ui, int peb1, int peb2, long long ec1, long long ec2, - struct ubi_vtbl_record *vtbl, int fd); + struct ubi_vtbl_record *vtbl, struct mtd_info *mtd); #endif /* !__LIBUBIGEN_H__ */ |