summaryrefslogtreecommitdiff
path: root/ubi-utils/include
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 07:55:14 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-06-14 08:03:42 +0300
commitc7298da85e0e249ba237dcf158ec3e158e54fd40 (patch)
tree152869b98a16d94fb239bf92d1c8fbccad146119 /ubi-utils/include
parentf8925c17b43d84cb6f56106e4ee2e10ee16b1a2a (diff)
libubi: provide mtd number in UBI device information
Add an 'mtd_num' field to the UBI device information structure. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/include')
-rw-r--r--ubi-utils/include/libubi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ubi-utils/include/libubi.h b/ubi-utils/include/libubi.h
index b69d9ab..f029a8d 100644
--- a/ubi-utils/include/libubi.h
+++ b/ubi-utils/include/libubi.h
@@ -95,6 +95,8 @@ struct ubi_info
/**
* struct ubi_dev_info - UBI device information.
+ * @dev_num: UBI device number
+ * @mtd_num: MTD device number on top of which this UBI device is working
* @vol_count: count of volumes on this UBI device
* @lowest_vol_id: lowest volume ID
* @highest_vol_id: highest volume ID
@@ -116,6 +118,7 @@ struct ubi_info
struct ubi_dev_info
{
int dev_num;
+ int mtd_num;
int vol_count;
int lowest_vol_id;
int highest_vol_id;