summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Miguel Silva <rui.silva@linaro.org>2016-07-19 15:41:30 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-19 16:38:24 -0700
commitd53cc1c37e5a4006fb23df8e54dc4a50e01732d9 (patch)
treea9992045b909aecdac9280402e020856c406be43
parent484a4d667751148654277a3ec93b8f0a327da29d (diff)
downloadlinux-d53cc1c37e5a4006fb23df8e54dc4a50e01732d9.tar.bz2
greybus: sdio: add switch voltage operation
Core sd/mmc needs the start_signal_voltage_switch operation to be defined to issue a voltage switch command. So, we define it here even though we do not need to take in action on it, since all voltage control is done in the Module. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r--drivers/staging/greybus/sdio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/greybus/sdio.c b/drivers/staging/greybus/sdio.c
index 5e5de04047c1..ad448c6388bb 100644
--- a/drivers/staging/greybus/sdio.c
+++ b/drivers/staging/greybus/sdio.c
@@ -734,11 +734,17 @@ static int gb_mmc_get_cd(struct mmc_host *mmc)
return host->card_present;
}
+static int gb_mmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)
+{
+ return 0;
+}
+
static const struct mmc_host_ops gb_sdio_ops = {
.request = gb_mmc_request,
.set_ios = gb_mmc_set_ios,
.get_ro = gb_mmc_get_ro,
.get_cd = gb_mmc_get_cd,
+ .start_signal_voltage_switch = gb_mmc_switch_voltage,
};
static int gb_sdio_probe(struct gbphy_device *gbphy_dev,