OSDN Git Service

mmc: core: Share internal function to set initial signal voltage
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 5 Apr 2018 19:24:15 +0000 (21:24 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 May 2018 07:33:50 +0000 (09:33 +0200)
commit508c9864ccede5dd4b8a7220b3fe6998763e4407
treefbf0c81decabc0fcac4ac627ce2c2d96ec837a58
parent1433269c4d2461be1f36db5dbb453976b38996ff
mmc: core: Share internal function to set initial signal voltage

Move the corresponding code for setting the initial signal voltage, from
mmc_power_up() into a new function, mmc_set_initial_signal_voltage().

Make the function internally available to the mmc core, as to allow the
following changes to make use of it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/core.c
drivers/mmc/core/core.h