mci: imx-esdhc: Share code for esdhc_send_cmd()
Versions of esdhc_send_cmd() in imx-esdhc.c and imx-esdhc-pbl.c implement almost the same algorithm. To avoid code repetition, move that code to imx-esdhc-common.c and adjust all of the users accordingly. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
drivers/mci/imx-esdhc-common.c |
---|
drivers/mci/imx-esdhc-pbl.c |
---|
drivers/mci/imx-esdhc.c |
---|
drivers/mci/imx-esdhc.h |
---|