mmc: block: Reparametrize mmc_blk_ioctl_[multi]_cmd()
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Aug 2017 21:39:11 +0000 (23:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:40 +0000 (15:03 +0200)
commit2fe20baec46caeaf1076a7f3d7cfd3e75c40205c
tree83fa7aa38c5e9efb283f1025decc7fac38cddf02
parent1f797edc62da59ad9b319a6b3f7c73a58047c896
mmc: block: Reparametrize mmc_blk_ioctl_[multi]_cmd()

Instead of passing a block device to
mmc_blk_ioctl[_multi]_cmd(), let's pass struct mmc_blk_data()
so we operate ioctl()s on the MMC block device representation
rather than the vanilla block device.

This saves a little duplicated code and makes it possible to
issue ioctl()s not targeted for a specific block device but
rather for a specific partition/area.

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