]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4da304471c7089619f84a75491547f118066ec35
treefe4830095a8df85cb61e1a06d2f87e0e8e5622e7
parent031d5572e36e47994d06eb4d88b4f8267d174d61
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