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_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 <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250401095847.29271-9-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wolfram Sang and committed by
Ulf Hansson
e3df5ae4 55e0961a

+2 -2
+2 -2
drivers/mmc/core/mmc.c
··· 1955 1955 return err; 1956 1956 } 1957 1957 1958 - static int mmc_can_sleep(struct mmc_card *card) 1958 + static bool mmc_card_can_sleep(struct mmc_card *card) 1959 1959 { 1960 1960 return card->ext_csd.rev >= 3; 1961 1961 } ··· 2139 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 - else if (mmc_can_sleep(host->card)) 2142 + else if (mmc_card_can_sleep(host->card)) 2143 2143 err = mmc_sleep(host); 2144 2144 else if (!mmc_host_is_spi(host)) 2145 2145 err = mmc_deselect_cards(host);