Skip to content

Commit e3df5ae

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: rename mmc_can_sleep() to mmc_card_can_sleep()
mmc_can_* functions sometimes relate to the card and sometimes to the host. Make it obvious by renaming this function to include 'card'. Also, convert to proper bool type while we are here. Signed-off-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 55e0961 commit e3df5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mmc/core/mmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,7 +1955,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
19551955
return err;
19561956
}
19571957

1958-
static int mmc_can_sleep(struct mmc_card *card)
1958+
static bool mmc_card_can_sleep(struct mmc_card *card)
19591959
{
19601960
return card->ext_csd.rev >= 3;
19611961
}
@@ -2139,7 +2139,7 @@ static int _mmc_suspend(struct mmc_host *host, enum mmc_poweroff_type pm_type)
21392139
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);
2142-
else if (mmc_can_sleep(host->card))
2142+
else if (mmc_card_can_sleep(host->card))
21432143
err = mmc_sleep(host);
21442144
else if (!mmc_host_is_spi(host))
21452145
err = mmc_deselect_cards(host);

0 commit comments

Comments
 (0)