Commit bdbf9faf authored by Ludovic Barre's avatar Ludovic Barre Committed by Ulf Hansson

mmc: mmci_sdmmc: Rename sdmmc_priv struct to sdmmc_idma

This patch renames sdmmc_priv struct to sdmmc_idma which is assigned to
host->dma_priv.
Signed-off-by: default avatarLudovic Barre <ludovic.barre@st.com>
Link: https://lore.kernel.org/r/20200128090636.13689-3-ludovic.barre@st.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 127e6e98
...@@ -20,7 +20,7 @@ struct sdmmc_lli_desc { ...@@ -20,7 +20,7 @@ struct sdmmc_lli_desc {
u32 idmasize; u32 idmasize;
}; };
struct sdmmc_priv { struct sdmmc_idma {
dma_addr_t sg_dma; dma_addr_t sg_dma;
void *sg_cpu; void *sg_cpu;
}; };
...@@ -92,7 +92,7 @@ static void sdmmc_idma_unprep_data(struct mmci_host *host, ...@@ -92,7 +92,7 @@ static void sdmmc_idma_unprep_data(struct mmci_host *host,
static int sdmmc_idma_setup(struct mmci_host *host) static int sdmmc_idma_setup(struct mmci_host *host)
{ {
struct sdmmc_priv *idma; struct sdmmc_idma *idma;
idma = devm_kzalloc(mmc_dev(host->mmc), sizeof(*idma), GFP_KERNEL); idma = devm_kzalloc(mmc_dev(host->mmc), sizeof(*idma), GFP_KERNEL);
if (!idma) if (!idma)
...@@ -123,7 +123,7 @@ static int sdmmc_idma_setup(struct mmci_host *host) ...@@ -123,7 +123,7 @@ static int sdmmc_idma_setup(struct mmci_host *host)
static int sdmmc_idma_start(struct mmci_host *host, unsigned int *datactrl) static int sdmmc_idma_start(struct mmci_host *host, unsigned int *datactrl)
{ {
struct sdmmc_priv *idma = host->dma_priv; struct sdmmc_idma *idma = host->dma_priv;
struct sdmmc_lli_desc *desc = (struct sdmmc_lli_desc *)idma->sg_cpu; struct sdmmc_lli_desc *desc = (struct sdmmc_lli_desc *)idma->sg_cpu;
struct mmc_data *data = host->data; struct mmc_data *data = host->data;
struct scatterlist *sg; struct scatterlist *sg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment