summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-11-09 05:25:06 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-11-16 14:44:31 +0300
commit1f71b0bf4ef8992ae7749f917b6593fd902ec476 (patch)
tree56eeedb8f6f4a1938d912fd8853d8da6f756f3e4 /drivers/mmc
parentc24aa7b160f558c5ca4f05168dfab021987601c9 (diff)
downloadlinux-1f71b0bf4ef8992ae7749f917b6593fd902ec476.tar.xz
mmc: owl-mmc: use true and false for bool variables
Fix coccicheck warnings: ./owl-mmc.c:524:2-18: WARNING: Assignment of 0/1 to bool variable ./owl-mmc.c:528:2-18: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Link: https://lore.kernel.org/r/1604888706-63429-1-git-send-email-zou_wei@huawei.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/owl-mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c
index 82d2bad577ca..53b81582f1af 100644
--- a/drivers/mmc/host/owl-mmc.c
+++ b/drivers/mmc/host/owl-mmc.c
@@ -521,11 +521,11 @@ static void owl_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
/* Enable DDR mode if requested */
if (ios->timing == MMC_TIMING_UHS_DDR50) {
- owl_host->ddr_50 = 1;
+ owl_host->ddr_50 = true;
owl_mmc_update_reg(owl_host->base + OWL_REG_SD_EN,
OWL_SD_EN_DDREN, true);
} else {
- owl_host->ddr_50 = 0;
+ owl_host->ddr_50 = false;
}
}