summaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2018-01-26 19:25:29 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2018-05-08 13:12:33 +0900
commit65117182543e58ba69f4abdc998423798137cbae (patch)
treeeadfc8e9646215ff4946949ffd7a09566ef255a3 /include/mmc.h
parent817669231c89a97e3934baf07d457ca9671947ea (diff)
mmc: add the MMC_CLK_ENABLE/DISABLE macro in mmc.h
mmc_set_clock() function has the disable argument as bool type. When mmc_set_clock is called, it might be passed to "true" or "false". But it's too confusion whether clock is enabled or disabled with only "true" and "false". To prevent the confusion, replace to MMC_CLK_ENABLE/DISABLE macro from true/false. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index d9611a0e9b..534c317b43 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -707,6 +707,9 @@ int mmc_voltage_to_mv(enum mmc_voltage voltage);
*/
int mmc_set_clock(struct mmc *mmc, uint clock, bool disable);
+#define MMC_CLK_ENABLE false
+#define MMC_CLK_DISABLE true
+
struct mmc *find_mmc_device(int dev_num);
int mmc_set_dev(int dev_num);
void print_mmc_devices(char separator);