Skip to content

Commit d872c26

Browse files
Wolfram SangUlf Hansson
authored andcommitted
mmc: rename mmc_can_poweroff_notify() to mmc_card_can_poweroff_notify()
mmc_can_* functions sometimes relate to the card and sometimes to the host. Make it obvious by renaming this function to include 'card'. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20250401095847.29271-5-wsa+renesas@sang-engineering.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent ceb5d3a commit d872c26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/mmc/core/mmc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ static int mmc_sleep(struct mmc_host *host)
20132013
return err;
20142014
}
20152015

2016-
static bool mmc_can_poweroff_notify(const struct mmc_card *card)
2016+
static bool mmc_card_can_poweroff_notify(const struct mmc_card *card)
20172017
{
20182018
return card &&
20192019
mmc_card_mmc(card) &&
@@ -2136,7 +2136,7 @@ static int _mmc_suspend(struct mmc_host *host, enum mmc_poweroff_type pm_type)
21362136
if (err)
21372137
goto out;
21382138

2139-
if (mmc_can_poweroff_notify(host->card) &&
2139+
if (mmc_card_can_poweroff_notify(host->card) &&
21402140
mmc_host_can_poweroff_notify(host, pm_type))
21412141
err = mmc_poweroff_notify(host->card, notify_type);
21422142
else if (mmc_can_sleep(host->card))
@@ -2217,7 +2217,7 @@ static int mmc_shutdown(struct mmc_host *host)
22172217
* the sleep-cmd (CMD5), we may need to re-initialize it first, to allow
22182218
* us to send the preferred poweroff-notification cmd at shutdown.
22192219
*/
2220-
if (mmc_can_poweroff_notify(host->card) &&
2220+
if (mmc_card_can_poweroff_notify(host->card) &&
22212221
!mmc_host_can_poweroff_notify(host, MMC_POWEROFF_SUSPEND))
22222222
err = _mmc_resume(host);
22232223

0 commit comments

Comments
 (0)