Commit 882edf59 authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

greybus: sdio: pass only data pointer to tranfer funtion

No need to pass the all request to the transfer related funtctions.
Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 7a5cd5ae
...@@ -285,9 +285,8 @@ static int _gb_sdio_recv(struct gb_sdio_host *host, struct mmc_data *data, ...@@ -285,9 +285,8 @@ static int _gb_sdio_recv(struct gb_sdio_host *host, struct mmc_data *data,
return 0; return 0;
} }
static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_request *mrq) static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_data *data)
{ {
struct mmc_data *data = mrq->data;
size_t left, len; size_t left, len;
off_t skip = 0; off_t skip = 0;
int ret = 0; int ret = 0;
...@@ -438,7 +437,7 @@ static void gb_sdio_mrq_work(struct work_struct *work) ...@@ -438,7 +437,7 @@ static void gb_sdio_mrq_work(struct work_struct *work)
goto done; goto done;
if (mrq->data) { if (mrq->data) {
ret = gb_sdio_transfer(host, host->mrq); ret = gb_sdio_transfer(host, host->mrq->data);
if (ret < 0) if (ret < 0)
goto done; goto done;
} }
......
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