diff mbox series

[10/11] mmc: rename mmc_retune_recheck() to mmc_host_retune_recheck()

Message ID 20250425111414.2522-11-wsa+renesas@sang-engineering.com
State New
Headers show
Series mmc: rename mmc_retune_* to mmc_host_retune_* | expand

Commit Message

Wolfram Sang April 25, 2025, 11:14 a.m. UTC
mmc_* functions sometimes relate to the card and sometimes to the host.
Make it obvious by renaming this function to include 'host'.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/core/core.c | 2 +-
 drivers/mmc/core/host.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index c553eecce1ab..960d7f4a3503 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -412,7 +412,7 @@  void mmc_wait_for_req_done(struct mmc_host *host, struct mmc_request *mrq)
 		    mmc_card_removed(host->card))
 			break;
 
-		mmc_retune_recheck(host);
+		mmc_host_retune_recheck(host);
 
 		pr_debug("%s: req failed (CMD%u): %d, retrying...\n",
 			 mmc_hostname(host), cmd->opcode, cmd->error);
diff --git a/drivers/mmc/core/host.h b/drivers/mmc/core/host.h
index fb1a9d7b5c91..b1bd4388e215 100644
--- a/drivers/mmc/core/host.h
+++ b/drivers/mmc/core/host.h
@@ -33,7 +33,7 @@  static inline void mmc_host_retune_hold_now(struct mmc_host *host)
 	host->hold_retune += 1;
 }
 
-static inline void mmc_retune_recheck(struct mmc_host *host)
+static inline void mmc_host_retune_recheck(struct mmc_host *host)
 {
 	if (host->hold_retune <= 1)
 		host->retune_now = 1;