mmc: core: Clarify code for sending CSD
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Jun 2017 13:27:45 +0000 (15:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:47 +0000 (10:30 +0200)
commit0796e439c5cc4ceeb84e08479c5ee1a4ebab5549
tree896eac7efed2605dfe47a10aaf00c43d9f454344
parentc92e68d8a6595fec3e1f778edb4760507aef18d2
mmc: core: Clarify code for sending CSD

To make the code more consistent and to increase readability, add an
mmc_spi_send_csd() function, which gets called from mmc_send_csd() in case
of SPI mode.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/mmc/core/mmc_ops.c