mmc: core: Factor out the alignment of erase size
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 7 Sep 2016 02:38:24 +0000 (10:38 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:25 +0000 (21:31 +0200)
commit71085123d27dc5d28ce523344f32ac0d20c5f0a5
tree950fd211bf33e0f414c27e3bf8c821ef22034ba4
parent902a8a0b50d7d13cf88211d0bde3a7c27fd98fa5
mmc: core: Factor out the alignment of erase size

In order to clean up the mmc_erase() function and do some optimization
for erase size alignment, factor out the guts of erase size alignment
into mmc_align_erase_size() function.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c