mmc: mediatek: Use mmc_regulator_set_vqmmc in start_signal_voltage_switch
authorNicolas Boichat <drinkcat@chromium.org>
Thu, 3 Mar 2016 10:19:45 +0000 (18:19 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 17 Mar 2016 13:54:36 +0000 (14:54 +0100)
commitfac49ce575cd86dc5e91049f274750923dfb6840
tree428341d4f19f8fc4519c3c07eb090597dfe283ac
parentf9bab9d2b169a9e80c1a710b19d792974787e899
mmc: mediatek: 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 mtk-sd.  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-mediatek specific code in mtk-sd.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c
This page took 0.025938 seconds and 5 git commands to generate.