mmc: core: Re-factor code for sending CID
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 8 Jun 2017 13:27:43 +0000 (15:27 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:45 +0000 (10:30 +0200)
commita1473732507499ec4002ad8cd33e645579d61a26
tree7519050ad515472e502abb3d930e7820a98818a0
parent3df66e77e10a1eac51854dc91b0d0875897f2e4c
mmc: core: Re-factor code for sending CID

Instead of having the caller to check for SPI mode, let's leave that to
internals of mmc_send_cid(). In this way the code gets cleaner and it
becomes clear what is specific to SPI and non-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.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h
drivers/mmc/core/sd.c