]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: delete is_first_req parameter from pre-request callback
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 23 Nov 2016 10:02:24 +0000 (11:02 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:05:27 +0000 (09:05 +0100)
commitb96ebc915cb22dfd0879d1eef67ea57bf1688b2e
treebff68f24e27d72562f187077dd899524cfddde2f
parent37601539b709bc8f3e3728df608cdf58ab769e01
mmc: delete is_first_req parameter from pre-request callback

The void (*pre_req) callback in the struct mmc_host_ops vtable
is passing an argument "is_first_req" indicating whether this is
the first request or not.

None of the in-kernel users use this parameter: instead, since
they all just do variants of dma_map* they use the DMA cookie
to indicate whether a pre* callback has already been done for
a request when they decide how to handle it.

Delete the parameter from the callback and all users, as it is
just pointless cruft.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/jz4740_mmc.c
drivers/mmc/host/mmci.c
drivers/mmc/host/mtk-sd.c
drivers/mmc/host/omap_hsmmc.c
drivers/mmc/host/rtsx_pci_sdmmc.c
drivers/mmc/host/sdhci.c
include/linux/mmc/host.h