mmc: core: Convert mmc_can_poweroff_notify() into a bool

It's really a true/false value that matters, let's make it clear by
returning a bool instead.

Reviewed-by: Avri Altman <avri.altman@sandisk.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250407152759.25160-2-ulf.hansson@linaro.org
This commit is contained in:
Ulf Hansson 2025-04-07 17:27:51 +02:00
parent 9510b38dc0
commit 3953e7e8c1

View File

@ -2007,7 +2007,7 @@ static int mmc_sleep(struct mmc_host *host)
return err;
}
static int mmc_can_poweroff_notify(const struct mmc_card *card)
static bool mmc_can_poweroff_notify(const struct mmc_card *card)
{
return card &&
mmc_card_mmc(card) &&