mmc: core: Split up mmc_poll_for_busy()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 4 Feb 2020 08:54:42 +0000 (09:54 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:39 +0000 (14:35 +0100)
commit6972096a03ae40f1365d2829f92fd19202b2b326
tree529d0ad50421f5edbca184d6f374c5b88ca0aad6
parent02098ccdd823b598e92508918e20b37a1169df42
mmc: core: Split up mmc_poll_for_busy()

To make the code more readable, move the part that gets the busy status of
the card out into a separate function, mmc_busy_status(). Then call it from
mmc_poll_for_busy().

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-6-ulf.hansson@linaro.org
drivers/mmc/core/mmc_ops.c