Skip to content

Commit dc03e2e

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: rename mmc_host_done_complete() to mmc_host_can_done_complete()
It is not obvious that this functions checks capabilities. Rename it to include '_can' like other capability helpers. Signed-off-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 03b31a0 commit dc03e2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/mmc/core/block.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ void mmc_blk_mq_recovery(struct mmc_queue *mq)
22782278
static void mmc_blk_mq_complete_prev_req(struct mmc_queue *mq,
22792279
struct request **prev_req)
22802280
{
2281-
if (mmc_host_done_complete(mq->card->host))
2281+
if (mmc_host_can_done_complete(mq->card->host))
22822282
return;
22832283

22842284
mutex_lock(&mq->complete_lock);
@@ -2317,7 +2317,7 @@ static void mmc_blk_mq_req_done(struct mmc_request *mrq)
23172317
struct mmc_host *host = mq->card->host;
23182318
unsigned long flags;
23192319

2320-
if (!mmc_host_done_complete(host)) {
2320+
if (!mmc_host_can_done_complete(host)) {
23212321
bool waiting;
23222322

23232323
/*
@@ -2430,7 +2430,7 @@ static int mmc_blk_mq_issue_rw_rq(struct mmc_queue *mq,
24302430
mq->rw_wait = false;
24312431

24322432
/* Release re-tuning here where there is no synchronization required */
2433-
if (err || mmc_host_done_complete(host))
2433+
if (err || mmc_host_can_done_complete(host))
24342434
mmc_retune_release(host);
24352435

24362436
out_post_req:

drivers/mmc/core/host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static inline int mmc_host_can_cmd23(struct mmc_host *host)
4444
return host->caps & MMC_CAP_CMD23;
4545
}
4646

47-
static inline bool mmc_host_done_complete(struct mmc_host *host)
47+
static inline bool mmc_host_can_done_complete(struct mmc_host *host)
4848
{
4949
return host->caps & MMC_CAP_DONE_COMPLETE;
5050
}

0 commit comments

Comments
 (0)