diff options
| author | Wolfram Sang <[email protected]> | 2025-04-01 09:58:37 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-05-14 14:59:17 +0000 |
| commit | 76d62cde684ba53dcbc6923b2ec90a024ee253f9 (patch) | |
| tree | b1aeaae0758febec37458f57c415f21cd8ec62ac /drivers/mmc/core/mmc.c | |
| parent | mmc: alcor: Use str_read_write() helper (diff) | |
| download | kernel-76d62cde684ba53dcbc6923b2ec90a024ee253f9.tar.gz kernel-76d62cde684ba53dcbc6923b2ec90a024ee253f9.zip | |
mmc: rename mmc_can_discard() to mmc_card_can_discard()
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/mmc/core/mmc.c')
| -rw-r--r-- | drivers/mmc/core/mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 48656dadf93b..7c4c26a61777 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1804,7 +1804,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, } /* set erase_arg */ - if (mmc_can_discard(card)) + if (mmc_card_can_discard(card)) card->erase_arg = MMC_DISCARD_ARG; else if (mmc_can_trim(card)) card->erase_arg = MMC_TRIM_ARG; |
