]> git.sur5r.net Git - u-boot/blobdiff - include/part.h
disk: Return the partition number in part_get_info_by_name()
[u-boot] / include / part.h
index b6d1b33167ba267244e43f04e18cca870116cfc6..83bce05a43d601dc3008e40db5ec907b761e8dfb 100644 (file)
@@ -163,7 +163,8 @@ int blk_get_device_part_str(const char *ifname, const char *dev_part_str,
  * @param gpt_name - the specified table entry name
  * @param info - returns the disk partition info
  *
- * @return - '0' on match, '-1' on no match, otherwise error
+ * @return - the partition number on match (starting on 1), -1 on no match,
+ * otherwise error
  */
 int part_get_info_by_name(struct blk_desc *dev_desc,
                              const char *name, disk_partition_t *info);