@@ -931,7 +931,7 @@ static int mmc_sd_init_card(struct mmc_host *host, u32 ocr,
* value registers for UHS-I cards.
*/
if (host->ops->enable_preset_value)
- host->ops->enable_preset_value(host, 1);
+ host->ops->enable_preset_value(host, true);
} else {
/*
* Attempt to change to high-speed (if supported)
@@ -1104,7 +1104,7 @@ int mmc_attach_sd(struct mmc_host *host)
/* Disable preset value enable if already set since last time */
if (host->ops->enable_preset_value)
- host->ops->enable_preset_value(host, 0);
+ host->ops->enable_preset_value(host, false);
err = mmc_send_app_op_cond(host, 0, &ocr);
if (err)
@@ -1649,7 +1649,7 @@ out:
return err;
}
-static void sdhci_enable_preset_value(struct mmc_host *mmc, int enable)
+static void sdhci_enable_preset_value(struct mmc_host *mmc, bool enable)
{
struct sdhci_host *host;
u16 ctrl;
@@ -137,7 +137,7 @@ struct mmc_host_ops {
int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
int (*execute_tuning)(struct mmc_host *host);
- void (*enable_preset_value)(struct mmc_host *host, int enable);
+ void (*enable_preset_value)(struct mmc_host *host, bool enable);
};
struct mmc_card;