]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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>
Fri, 4 Mar 2016 09:39:31 +0000 (10:39 +0100)
commit67b3fcff2da91b5a70bb000e03f526a734faba37
treefba55ec1d9fa93e8dcc1dc9e274da2bb04ed505b
parentf3602b3feb905a5e7fc140230615f7b40f5054b4
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