兼容工厂版本

Change-Id: I0efefb89872e027509f214347764be4fdeaf7128
diff --git a/mbtk/libmbtk_lib/common/mbtk_device_info.c b/mbtk/libmbtk_lib/common/mbtk_device_info.c
index c185d00..7c53f33 100755
--- a/mbtk/libmbtk_lib/common/mbtk_device_info.c
+++ b/mbtk/libmbtk_lib/common/mbtk_device_info.c
@@ -260,4 +260,22 @@
     return -1;
 }
 
+int mbtk_dev_info_revision_get(char *revision_out, char *revision_in)
+{
+    mbtk_device_info_basic_t info_basic;
+    memset(&info_basic, 0, sizeof(mbtk_device_info_basic_t));
+    int result = mbtk_dev_info_read(MBTK_DEVICE_INFO_ITEM_BASIC, &info_basic, sizeof(mbtk_device_info_basic_t));
+    if(result) {
+        LOGE("mbtk_dev_info_read(BASIC) fail.");
+        return -1;
+    }
 
+    if(strlen((char*)info_basic.revision_out) > 0) {
+        memcpy(revision_out, info_basic.revision_out, strlen((char*)info_basic.revision_out));
+    }
+    if(strlen((char*)info_basic.revision_in) > 0) {
+        memcpy(revision_in, info_basic.revision_in, strlen((char*)info_basic.revision_in));
+    }
+
+    return 0;
+}