mmc: block: Refactor mmc_blk_part_switch()
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Aug 2017 21:39:10 +0000 (23:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:40 +0000 (15:03 +0200)
commit1f797edc62da59ad9b319a6b3f7c73a58047c896
treefe4830095a8df85cb61e1a06d2f87e0e8e5622e7
parent61fe0e2bdac51f94f9114ff1b2caef1c75db3679
mmc: block: Refactor mmc_blk_part_switch()

Instead of passing a struct mmc_blk_data * to mmc_blk_part_switch()
let's pass the actual partition type we want to switch to. This
is necessary in order not to have a block device with a backing
mmc_blk_data and request queue and all for every hardware partition,
such as RPMB.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c