mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch
authorDouglas Anderson <dianders@chromium.org>
Mon, 12 Oct 2015 12:48:26 +0000 (14:48 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 15:00:11 +0000 (16:00 +0100)
commite0848f5d294c703917260a6228cc08b8be46c527
tree2d9d787c0552ea90e327914190392fe589417da2
parent2086f801cb2a796279e817e68255654c4cfd3be3
mmc: dw_mmc: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch

We've introduced a new helper in the MMC core:
mmc_regulator_set_vqmmc().  Let's use this in dw_mmc.  Using this new
helper has some advantages:

1. We get the mmc_regulator_set_vqmmc() behavior of trying to match
   VQMMC and VMMC when the signal voltage is 3.3V.  This ensures max
   compatibility.

2. We get rid of a few more warnings when probing unsupported
   voltages.

3. We get rid of some non-dw_mmc specific code in dw_mmc.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c