]> 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)
commita4d9f9d70e5d782fb2a24d330ab47af4e4c279ad
treefe4830095a8df85cb61e1a06d2f87e0e8e5622e7
parent0499bcb86ea03229b4aa8402d32c4e46dbf513e7
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