mmc: core: Enable re-use of mmc_blk_in_tran_state()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 Feb 2020 08:54:43 +0000 (09:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:39 +0000 (14:35 +0100)
commit40c96853fef1bdef13d2cd05b21d4f06b2de6321
tree038cc329023db57c89bbaa1fdad36a63e0072582
parent6972096a03ae40f1365d2829f92fd19202b2b326
mmc: core: Enable re-use of mmc_blk_in_tran_state()

To allow subsequent changes to re-use the code from the static function
mmc_blk_in_tran_state(), let's move it to a public header. While at it,
let's also rename it to mmc_ready_for_data(), as to try to better describe
its purpose.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Baolin Wang <baolin.wang7@gmail.com>
Tested-by: Ludovic Barre <ludovic.barre@st.com>
Reviewed-by: Ludovic Barre <ludovic.barre@st.com>
Link: https://lore.kernel.org/r/20200204085449.32585-7-ulf.hansson@linaro.org
drivers/mmc/core/block.c
include/linux/mmc/mmc.h