From 194b2a55f626b94323b377d75edb295f536359c5 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sat, 18 Apr 2009 16:01:40 +0300 Subject: libmtd: amend interface Remove the fd field from the mtd information data structure, because libmtd does not really know the device node file name, and serves only as a place to save the descriptor. The callers should find a better place. This patch improves code readability and prepares for further changes. Signed-off-by: Artem Bityutskiy --- ubi-utils/include/libscan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ubi-utils/include/libscan.h') diff --git a/ubi-utils/include/libscan.h b/ubi-utils/include/libscan.h index 5afc93e..8597b98 100644 --- a/ubi-utils/include/libscan.h +++ b/ubi-utils/include/libscan.h @@ -92,11 +92,13 @@ struct mtd_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 ubi_scan(struct mtd_info *mtd, struct ubi_scan_info **info, int verbose); +int ubi_scan(struct mtd_info *mtd, int fd, struct ubi_scan_info **info, + int verbose); /** * ubi_scan_free - free scanning information. -- cgit v1.2.3