Message ID | 20250320140040.162416-2-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show |
Series | mmc: core: Add support for graceful host removal for eMMC/SD | expand |
> It's really a true/false value that matters, let's make it clear by returning a bool > instead. > > Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Avri Altman <avri.altman@sandisk.com> > --- > drivers/mmc/core/mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index > 1522fd2b517d..3424bc9e20c5 100644 > --- a/drivers/mmc/core/mmc.c > +++ b/drivers/mmc/core/mmc.c > @@ -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) && > -- > 2.43.0 >
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 1522fd2b517d..3424bc9e20c5 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -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) &&
It's really a true/false value that matters, let's make it clear by returning a bool instead. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/core/mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)