aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/mmc_test.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-02-01 07:47:53 -0500
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-13 07:20:58 -0500
commitc3399ef55d8e8295293808eba32e3f7056526324 (patch)
tree35624e73b649ab05c4deb5cb4d705d6fe7e27f45 /drivers/mmc/core/mmc_test.c
parentacd8dbd64a2adcd950c31261247cda6f847f57eb (diff)
mmc: core: rename mmc_start_req() to *areq()
With the coexisting __mmc_start_request(), mmc_start_request() and __mmc_start_req() it is a bit confusing that mmc_start_req() actually does not start a normal request, but an asynchronous request. Rename it to mmc_start_areq() to make it explicit what the function is doing, also fix the kerneldoc for this function while we're at it. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc_test.c')
-rw-r--r--drivers/mmc/core/mmc_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc_test.c b/drivers/mmc/core/mmc_test.c
index 83d193c09d98..f99ac3123fd2 100644
--- a/drivers/mmc/core/mmc_test.c
+++ b/drivers/mmc/core/mmc_test.c
@@ -853,7 +853,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
853 for (i = 0; i < count; i++) { 853 for (i = 0; i < count; i++) {
854 mmc_test_prepare_mrq(test, cur_areq->mrq, sg, sg_len, dev_addr, 854 mmc_test_prepare_mrq(test, cur_areq->mrq, sg, sg_len, dev_addr,
855 blocks, blksz, write); 855 blocks, blksz, write);
856 done_areq = mmc_start_req(test->card->host, cur_areq, &status); 856 done_areq = mmc_start_areq(test->card->host, cur_areq, &status);
857 857
858 if (status != MMC_BLK_SUCCESS || (!done_areq && i > 0)) { 858 if (status != MMC_BLK_SUCCESS || (!done_areq && i > 0)) {
859 ret = RESULT_FAIL; 859 ret = RESULT_FAIL;
@@ -872,7 +872,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
872 dev_addr += blocks; 872 dev_addr += blocks;
873 } 873 }
874 874
875 done_areq = mmc_start_req(test->card->host, NULL, &status); 875 done_areq = mmc_start_areq(test->card->host, NULL, &status);
876 if (status != MMC_BLK_SUCCESS) 876 if (status != MMC_BLK_SUCCESS)
877 ret = RESULT_FAIL; 877 ret = RESULT_FAIL;
878 878
@@ -2402,7 +2402,7 @@ static int mmc_test_ongoing_transfer(struct mmc_test_card *test,
2402 2402
2403 /* Start ongoing data request */ 2403 /* Start ongoing data request */
2404 if (use_areq) { 2404 if (use_areq) {
2405 mmc_start_req(host, &test_areq.areq, &blkstat); 2405 mmc_start_areq(host, &test_areq.areq, &blkstat);
2406 if (blkstat != MMC_BLK_SUCCESS) { 2406 if (blkstat != MMC_BLK_SUCCESS) {
2407 ret = RESULT_FAIL; 2407 ret = RESULT_FAIL;
2408 goto out_free; 2408 goto out_free;
@@ -2440,7 +2440,7 @@ static int mmc_test_ongoing_transfer(struct mmc_test_card *test,
2440 2440
2441 /* Wait for data request to complete */ 2441 /* Wait for data request to complete */
2442 if (use_areq) { 2442 if (use_areq) {
2443 mmc_start_req(host, NULL, &blkstat); 2443 mmc_start_areq(host, NULL, &blkstat);
2444 if (blkstat != MMC_BLK_SUCCESS) 2444 if (blkstat != MMC_BLK_SUCCESS)
2445 ret = RESULT_FAIL; 2445 ret = RESULT_FAIL;
2446 } else { 2446 } else {