From: Yue Hu <zbestahu@gmail.com>
To: adrian.hunter@intel.com, riteshh@codeaurora.org,
asutoshd@codeaurora.org, ulf.hansson@linaro.org
Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
huyue2@yulong.com, zbestahu@163.com
Subject: [PATCH] mmc: cqhci: use data instead of mrq parameter from cqhci_dma_map()
Date: Thu, 20 May 2021 18:00:36 +0800 [thread overview]
Message-ID: <20210520100036.2195-1-zbestahu@gmail.com> (raw)
From: Yue Hu <huyue2@yulong.com>
cqhci_dma_map() will be only called by cqhci_prep_tran_desc() which
already has 'mrq->data'.
Signed-off-by: Yue Hu <huyue2@yulong.com>
---
drivers/mmc/host/cqhci-core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c
index 93b0432..e759e3b 100644
--- a/drivers/mmc/host/cqhci-core.c
+++ b/drivers/mmc/host/cqhci-core.c
@@ -446,10 +446,9 @@ static void cqhci_prep_task_desc(struct mmc_request *mrq,
}
}
-static int cqhci_dma_map(struct mmc_host *host, struct mmc_request *mrq)
+static int cqhci_dma_map(struct mmc_host *host, struct mmc_data *data)
{
int sg_count;
- struct mmc_data *data = mrq->data;
if (!data)
return -EINVAL;
@@ -499,7 +498,7 @@ static int cqhci_prep_tran_desc(struct mmc_request *mrq,
u8 *desc;
struct scatterlist *sg;
- sg_count = cqhci_dma_map(mrq->host, mrq);
+ sg_count = cqhci_dma_map(mrq->host, data);
if (sg_count < 0) {
pr_err("%s: %s: unable to map sg lists, %d\n",
mmc_hostname(mrq->host), __func__, sg_count);
--
1.9.1
reply other threads:[~2021-05-20 11:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210520100036.2195-1-zbestahu@gmail.com \
--to=zbestahu@gmail.com \
--cc=adrian.hunter@intel.com \
--cc=asutoshd@codeaurora.org \
--cc=huyue2@yulong.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=riteshh@codeaurora.org \
--cc=ulf.hansson@linaro.org \
--cc=zbestahu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®