aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/mmc/mmc_fdt_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mmc/mmc_fdt_helpers.c b/sys/dev/mmc/mmc_fdt_helpers.c
index 4e8a1730d240..9d120fa01a26 100644
--- a/sys/dev/mmc/mmc_fdt_helpers.c
+++ b/sys/dev/mmc/mmc_fdt_helpers.c
@@ -407,7 +407,7 @@ mmc_fdt_gpio_get_present(struct mmc_fdt_helper *helper)
gpio_pin_is_active(helper->cd_pin, &pinstate);
- return (pinstate ^ (helper->props & MMC_PROP_CD_INVERTED));
+ return (pinstate ^ !!(helper->props & MMC_PROP_CD_INVERTED));
}
bool
@@ -423,7 +423,7 @@ mmc_fdt_gpio_get_readonly(struct mmc_fdt_helper *helper)
gpio_pin_is_active(helper->wp_pin, &pinstate);
- return (pinstate ^ (helper->props & MMC_PROP_WP_INVERTED));
+ return (pinstate ^ !!(helper->props & MMC_PROP_WP_INVERTED));
}
void