mmc: core: Return 1 from mmc_regulator_set_vqmmc() if switch skipped
authorMarek Vasut <marex@denx.de>
Thu, 16 Apr 2020 16:36:48 +0000 (18:36 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:58 +0000 (11:20 +0200)
commit17a0751e60b123ce1a266155abf72acd936b7ecc
tree6385c2b1c2f20cf51146dd92b973799c0806d5dc
parent9cbe0fc8cd9c156ff187231dbb38b02ee20fc8c6
mmc: core: Return 1 from mmc_regulator_set_vqmmc() if switch skipped

Adjust mmc_regulator_set_vqmmc() to return 1 if the voltage switch was
skipped because the regulator voltage was already correct. This allows
drivers to detect such condition and possibly skip various voltage
switching extras.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20200416163649.336967-2-marex@denx.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/regulator.c