* @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
*/
};
/**
- * 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
*
* 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.
#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;
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);
}
/*
- * 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.
*/