]> www.infradead.org Git - mtd-utils.git/commitdiff
libmtd: rename mtd_get_info
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 20 Apr 2009 10:03:21 +0000 (13:03 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 20 Apr 2009 13:29:39 +0000 (16:29 +0300)
Rename 'mtd_get_info()' into 'mtd_get_dev_info()' to be consistent
to libubi.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/include/libmtd.h
ubi-utils/src/libmtd.c
ubi-utils/src/ubiformat.c

index 9c7a6e3ac806cf3abbe2f9f9ac10d74b9c591e2f..f2f4da25aa6c8209390ff2e3b3e43d7958973d5b 100644 (file)
@@ -38,7 +38,7 @@ extern "C" {
  * @eb_cnt: count of eraseblocks
  * @eb_size: eraseblock size
  * @min_io_size: minimum input/output unit size
- * @subpage_size: sub-page size (not set by 'mtd_get_info()'!!!)
+ * @subpage_size: sub-page size
  * @rdonly: non-zero if the device is read-only
  * @allows_bb: non-zero if the MTD device may have bad eraseblocks
  */
@@ -59,7 +59,7 @@ struct mtd_info
 };
 
 /**
- * mtd_get_info - get information about an MTD device.
+ * mtd_get_dev_info - get information about an MTD device.
  * @node: name of the MTD device node
  * @mtd: the MTD device information is returned here
  *
@@ -67,7 +67,7 @@ struct mtd_info
  * node file and saves this information in the @mtd object. Returns %0 in case
  * of success and %-1 in case of failure.
  */
-int mtd_get_info(const char *node, struct mtd_info *mtd);
+int mtd_get_dev_info(const char *node, struct mtd_info *mtd);
 
 /**
  * mtd_erase - erase an eraseblock.
index 127d0ec59cdd733732f9c300c19eb3870242d089..8403c37eb33bc4fe24a4c05f356eb3f2994498b6 100644 (file)
@@ -33,7 +33,7 @@
 #define PROGRAM_NAME "libmtd"
 #define MTD_DEV_MAJOR 90
 
-int mtd_get_info(const char *node, struct mtd_info *mtd)
+int mtd_get_dev_info(const char *node, struct mtd_info *mtd)
 {
        struct stat st;
        struct mtd_info_user ui;
index 1409953bd81c0c209584583d0cd631142004abf2..511591a79e70d45a09fd68970c43846bcccbeca9 100644 (file)
@@ -691,7 +691,7 @@ int main(int argc, char * const argv[])
        if (err)
                return -1;
 
-       err = mtd_get_info(args.node, &mtd);
+       err = mtd_get_dev_info(args.node, &mtd);
        if (err)
                return errmsg("cannot get information about \"%s\"", args.node);
 
@@ -726,7 +726,7 @@ int main(int argc, char * const argv[])
        }
 
        /*
-        * Because of MTD interface limitations 'mtd_get_info()' cannot get
+        * Because of MTD interface limitations 'mtd_get_dev_info()' cannot get
         * sub-page so we force the user to pass it via the command line. Let's
         * hope the user passed us something sane.
         */