mmc: sunxi: Move the card power configuration to a function
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 14:23:03 +0000 (16:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:42 +0000 (15:08 +0200)
commite27e1f3d04061ccc3735361554088cd7aa286e31
tree5a87db2d8f61899eaf9f4e46caa113039a882167
parentad04d9555da02c719de25b7d1e81ea8d0d2c4838
mmc: sunxi: Move the card power configuration to a function

In order to improve readibility and reusability, let's move the card setup
to a small function called by our .set_ios hook.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c