summaryrefslogtreecommitdiff
path: root/ubi-utils/include
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-04-26 08:47:03 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-08 19:07:26 +0300
commitd41747f327b260c2fb470775fb9dc78d49a4d79e (patch)
tree678421607e077bc0000731db5a928d92363e0404 /ubi-utils/include
parentc900dff50cb7a6c21194aacd0ef2bfe734f7de8e (diff)
libmtd: make type_str to be an array
This is a prepearation to the coming sysfs interface support. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/include')
-rw-r--r--ubi-utils/include/libmtd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ubi-utils/include/libmtd.h b/ubi-utils/include/libmtd.h
index d1290e0..6a93e5f 100644
--- a/ubi-utils/include/libmtd.h
+++ b/ubi-utils/include/libmtd.h
@@ -27,6 +27,9 @@
extern "C" {
#endif
+/* Maximum MTD device type string length */
+#define MTD_TYPE_MAX 64
+
/**
* struct mtd_dev_info - information about an MTD device.
* @dev_num: MTD device number
@@ -48,7 +51,7 @@ struct mtd_dev_info
int major;
int minor;
int type;
- const char *type_str;
+ const char type_str[MTD_TYPE_MAX];
long long size;
int eb_cnt;
int eb_size;