summaryrefslogtreecommitdiff
path: root/ubi-utils/src/libmtd.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-26 08:11:58 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-08 19:07:26 +0300
commit2d57b66a576109db6a0a538377b744c06ed47451 (patch)
tree6a48b3d39613b3ce5d2e1ebfd9752b4a41e1f522 /ubi-utils/src/libmtd.c
parent977c750a28c1a6fdf80ff2908765f2cab99740c6 (diff)
libmtd: rename allows_bb field
This is a preparation for the coming sysfs support. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/src/libmtd.c')
-rw-r--r--ubi-utils/src/libmtd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ubi-utils/src/libmtd.c b/ubi-utils/src/libmtd.c
index dc9287a..b61f974 100644
--- a/ubi-utils/src/libmtd.c
+++ b/ubi-utils/src/libmtd.c
@@ -76,9 +76,9 @@ int mtd_get_dev_info(const char *node, struct mtd_dev_info *mtd)
goto out_close;
}
errno = 0;
- mtd->allows_bb = 0;
+ mtd->bb_allowed = 0;
} else
- mtd->allows_bb = 1;
+ mtd->bb_allowed = 1;
mtd->type = ui.type;
mtd->size = ui.size;
@@ -162,7 +162,7 @@ int mtd_is_bad(const struct mtd_dev_info *mtd, int fd, int eb)
return -1;
}
- if (!mtd->allows_bb)
+ if (!mtd->bb_allowed)
return 0;
seek = (loff_t)eb * mtd->eb_size;
@@ -178,7 +178,7 @@ int mtd_mark_bad(const struct mtd_dev_info *mtd, int fd, int eb)
int ret;
loff_t seek;
- if (!mtd->allows_bb) {
+ if (!mtd->bb_allowed) {
errno = EINVAL;
return -1;
}