summaryrefslogtreecommitdiffstats
path: root/lib/libscan.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-14 10:16:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-14 10:16:17 +0100
commit3930f38028fb8307097ced49ed034ca981b64873 (patch)
treed5e2f0be87511b9220410ffcfa4ce63938b8450e /lib/libscan.c
parenta40e76cebcbe8b025bafdefdc6e27b7553209ed7 (diff)
downloadbarebox-3930f38028fb8307097ced49ed034ca981b64873.tar.gz
barebox-3930f38028fb8307097ced49ed034ca981b64873.tar.xz
libmtd: rename functions from mtd_* to libmtd_*
The kernel nowadays has mtd_read/write and other functions. In barebox we also have these functions, but with a different prototype, namely they correspond to the libmtd userspace functions. Rename these functions to libmtd_* to avoid name clashes with future mtd updates. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/libscan.c')
-rw-r--r--lib/libscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libscan.c b/lib/libscan.c
index af55269ec4..c59acfa610 100644
--- a/lib/libscan.c
+++ b/lib/libscan.c
@@ -90,7 +90,7 @@ int libscan_ubi_scan(struct mtd_dev_info *mtd, int fd, struct ubi_scan_info **in
continue;
}
- ret = mtd_read(mtd, fd, eb, 0, &ech, sizeof(struct ubi_ec_hdr));
+ ret = libmtd_read(mtd, fd, eb, 0, &ech, sizeof(struct ubi_ec_hdr));
if (ret < 0)
goto out_ec;