]> git.sur5r.net Git - u-boot/blobdiff - include/mmc.h
mmc-uclass: correct the device number
[u-boot] / include / mmc.h
index 8f309f1f71c510b10b6ed81403b2b00bcf4b9c52..dd47f34e9de09c6b516c1baadfbf57f645606925 100644 (file)
@@ -503,6 +503,12 @@ void mmc_set_clock(struct mmc *mmc, uint clock);
 struct mmc *find_mmc_device(int dev_num);
 int mmc_set_dev(int dev_num);
 void print_mmc_devices(char separator);
+
+/**
+ * get_mmc_num() - get the total MMC device number
+ *
+ * @return 0 if there is no MMC device, else the number of devices
+ */
 int get_mmc_num(void);
 int mmc_hwpart_config(struct mmc *mmc, const struct mmc_hwpart_conf *conf,
                      enum mmc_hwpart_conf_mode mode);