mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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:
parent
9510b38dc0
commit
3953e7e8c1
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user