mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 28 Aug 2018 09:47:23 +0000 (17:47 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 8 Oct 2018 09:40:43 +0000 (11:40 +0200)
commit54552e4948cbfc87ba2fe81566cd4a8d7195a033
treed88d7441fc2b4c2179718b454e20d1e76244cedc
parente93be38af15524a43437b23b01bcfe9cb789f4e3
mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops

Add this hook so that it can be overridden with driver specific
implementations. We also let the original sdhci_adma_write_desc()
accept &desc so that the function can set its new value. Then export
the function so that it could be reused by driver's specific
implementations.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h