Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Wolfram Sang and committed by
Ulf Hansson
d872c267 ceb5d3ac

+3 -3
+3 -3
drivers/mmc/core/mmc.c
··· 2013 2013 return err; 2014 2014 } 2015 2015 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) 2017 2017 { 2018 2018 return card && 2019 2019 mmc_card_mmc(card) && ··· 2136 2136 if (err) 2137 2137 goto out; 2138 2138 2139 - if (mmc_can_poweroff_notify(host->card) && 2139 + if (mmc_card_can_poweroff_notify(host->card) && 2140 2140 mmc_host_can_poweroff_notify(host, pm_type)) 2141 2141 err = mmc_poweroff_notify(host->card, notify_type); 2142 2142 else if (mmc_can_sleep(host->card)) ··· 2217 2217 * the sleep-cmd (CMD5), we may need to re-initialize it first, to allow 2218 2218 * us to send the preferred poweroff-notification cmd at shutdown. 2219 2219 */ 2220 - if (mmc_can_poweroff_notify(host->card) && 2220 + if (mmc_card_can_poweroff_notify(host->card) && 2221 2221 !mmc_host_can_poweroff_notify(host, MMC_POWEROFF_SUSPEND)) 2222 2222 err = _mmc_resume(host); 2223 2223