mmc: core: Make mmc_switch_status() available for mmc core
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 19 Oct 2016 09:04:42 +0000 (11:04 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:48 +0000 (15:36 -0500)
commit90e68de651561702e4ed5b4d6c5f96bbd7553a78
treecef743505d1843e08301463bd4046920fa767de8
parentfc0f96c61a97ed7ae3ff368f4a9732647897643c
mmc: core: Make mmc_switch_status() available for mmc core

Following changes needs mmc_switch_status() to be available both from mmc.c
and mmc_ops.c. Allow that by moving its implementation to mmc_ops.c and
make it available via mmc_ops.h.

Moving mmc_switch_status() to mmc_ops.c, also enables us to turn
mmc_switch_status_error() into static function. So let's take the
opportunity to change this as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
(cherry picked from commit 20348d1981da783d125c8265ce2ba7e3f2a24103)
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h