summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci_qcom_dml.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2018-07-16 13:08:18 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2018-08-01 12:01:13 +0200
commit29aba07aea0e36c996001ca3f8997316ebefe0e1 (patch)
tree98061416a2b2ac0e84b722141fc0c7e12be3a2da /drivers/mmc/host/mmci_qcom_dml.h
parented9067fd5f299db7110861a0434d0e2ffb961649 (diff)
downloadlinux-29aba07aea0e36c996001ca3f8997316ebefe0e1.tar.bz2
mmc: mmci: Add and implement a ->dma_setup() callback for qcom dml
As a first step to improve the variant specific code for mmci, add a ->dma_setup() callback to the struct mmci_host_ops. To show its use, let's deploy the callback for the qcom dml, which involves also to the assign the mmci_host_ops pointer from the variant ->init() callback. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Ludovic Barre <ludovic.barre@st.com>
Diffstat (limited to 'drivers/mmc/host/mmci_qcom_dml.h')
-rw-r--r--drivers/mmc/host/mmci_qcom_dml.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mmc/host/mmci_qcom_dml.h b/drivers/mmc/host/mmci_qcom_dml.h
index 6e405d09d534..fa16f6f4d4ad 100644
--- a/drivers/mmc/host/mmci_qcom_dml.h
+++ b/drivers/mmc/host/mmci_qcom_dml.h
@@ -16,12 +16,11 @@
#define __MMC_QCOM_DML_H__
#ifdef CONFIG_MMC_QCOM_DML
-int dml_hw_init(struct mmci_host *host, struct device_node *np);
+void qcom_variant_init(struct mmci_host *host);
void dml_start_xfer(struct mmci_host *host, struct mmc_data *data);
#else
-static inline int dml_hw_init(struct mmci_host *host, struct device_node *np)
+static inline void qcom_variant_init(struct mmci_host *host)
{
- return -ENOSYS;
}
static inline void dml_start_xfer(struct mmci_host *host, struct mmc_data *data)
{