OSDN Git Service

mmc: sunxi: Move bus width configuration to a function
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 16 Apr 2018 14:23:01 +0000 (16:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:41 +0000 (15:08 +0200)
commit3f6c808e524700cb4f45123f9390ff83289c31e5
tree6edfed664da73fb63a2cb1ede19e3492bda3ba3e
parent0fc4c61fff02bea1a82caf05884fefc0ceb14c5f
mmc: sunxi: Move bus width configuration to a function

In order to improve readibility and reusability, let's move the bus width
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