mmc: core: Reduce code duplication to mmc_spi_send_{csd|cid}
authorYue Hu <huyue2@yulong.com>
Mon, 15 Feb 2021 01:51:16 +0000 (09:51 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:41:58 +0000 (11:41 +0200)
commitb53f0bee7e7ef83ab9496e267a639c2d954c9548
treea3e43815fcda5fef21a47bfa39004c390ba88e8c
parent6bfe4f749e098b441eec19c0a789415a7cf35065
mmc: core: Reduce code duplication to mmc_spi_send_{csd|cid}

mmc_spi_send_{csd|cid} have similar function body. Let's remove the
duplicated part to simplify the code, just add opcode to distinguish
them in changed mmc_spi_send_cxd().

Signed-off-by: Yue Hu <huyue2@yulong.com>
Link: https://lore.kernel.org/r/20210215015116.1355-1-zbestahu@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_ops.c