diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-15 12:53:00 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-15 12:55:34 +0300 |
commit | f64e613c4402080edf03c225cb4c0068040cf028 (patch) | |
tree | f8ff187412c9927e1b4540ac63a64af7ff388fa2 /ubi-utils/include | |
parent | c9c3eb5308bc235158547a31edc436cd05efde5c (diff) |
ubi-utils: harmonize libmtd interface a bit
Let's consistently use 'mtd_num' name for MTD device number. At the
moment some code uses 'mtd_num', other 'dev_num'. Harmonize that.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/include')
-rw-r--r-- | ubi-utils/include/libmtd.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ubi-utils/include/libmtd.h b/ubi-utils/include/libmtd.h index dd82b72..0aea966 100644 --- a/ubi-utils/include/libmtd.h +++ b/ubi-utils/include/libmtd.h @@ -36,22 +36,22 @@ extern "C" { typedef void * libmtd_t; /** - * @dev_count: count of MTD devices in system - * @lowest_dev_num: lowest MTD device number - * @highest_dev_num: highest MTD device number + * @mtd_dev_cnt: count of MTD devices in system + * @lowest_mtd_num: lowest MTD device number in system + * @highest_mtd_num: highest MTD device number in system * @sysfs_supported: non-zero if sysfs is supported by MTD */ struct mtd_info { - int dev_count; - int lowest_dev_num; - int highest_dev_num; + int mtd_dev_cnt; + int lowest_mtd_num; + int highest_mtd_num; unsigned int sysfs_supported:1; }; /** * struct mtd_dev_info - information about an MTD device. - * @dev_num: MTD device number + * @mtd_num: MTD device number * @major: major number of corresponding character device * @minor: minor number of corresponding character device * @type: flash type (constants like %MTD_NANDFLASH defined in mtd-abi.h) @@ -69,7 +69,7 @@ struct mtd_info */ struct mtd_dev_info { - int dev_num; + int mtd_num; int major; int minor; int type; @@ -129,13 +129,13 @@ int mtd_get_dev_info(libmtd_t desc, const char *node, struct mtd_dev_info *mtd); /** * mtd_get_dev_info1 - get information about an MTD device. * @desc: MTD library descriptor - * @dev_num: MTD device number to fetch information about + * @mtd_num: MTD device number to fetch information about * @mtd: the MTD device information is returned here * * This function is identical to 'mtd_get_dev_info()' except that it accepts * MTD device number, not MTD character device. */ -int mtd_get_dev_info1(libmtd_t desc, int dev_num, struct mtd_dev_info *mtd); +int mtd_get_dev_info1(libmtd_t desc, int mtd_num, struct mtd_dev_info *mtd); /** * mtd_erase - erase an eraseblock. |