diff options
| author | Wolfram Sang <[email protected]> | 2025-04-01 09:58:43 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-05-14 14:59:17 +0000 |
| commit | 55e0961a8b56f8356261e4a9b5544daf4f552def (patch) | |
| tree | 2b800b2a8430c5ceec028c60c23ec5db833ef163 /drivers/mmc/core/queue.c | |
| parent | mmc: rename mmc_can_sanitize() to mmc_card_can_sanitize() (diff) | |
| download | kernel-55e0961a8b56f8356261e4a9b5544daf4f552def.tar.gz kernel-55e0961a8b56f8356261e4a9b5544daf4f552def.zip | |
mmc: rename mmc_can_secure_erase_trim() to mmc_card_can_secure_erase_trim()
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/queue.c')
| -rw-r--r-- | drivers/mmc/core/queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/queue.c b/drivers/mmc/core/queue.c index 099fee86d088..f65bf1717bbd 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c @@ -184,7 +184,7 @@ static void mmc_queue_setup_discard(struct mmc_card *card, return; lim->max_hw_discard_sectors = max_discard; - if (mmc_can_secure_erase_trim(card)) + if (mmc_card_can_secure_erase_trim(card)) lim->max_secure_erase_sectors = max_discard; if (mmc_can_trim(card) && card->erased_byte == 0) lim->max_write_zeroes_sectors = max_discard; |
