diff options
| author | Wolfram Sang <[email protected]> | 2025-04-01 09:58:38 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2025-05-14 14:59:17 +0000 |
| commit | 5513d9bebbcca2eb30252ad6c2f0eaf73eec7121 (patch) | |
| tree | 305e3387d55e7279ceb2a13f37cce5ebd761dacb /drivers/mmc/core/queue.c | |
| parent | mmc: rename mmc_can_discard() to mmc_card_can_discard() (diff) | |
| download | kernel-5513d9bebbcca2eb30252ad6c2f0eaf73eec7121.tar.gz kernel-5513d9bebbcca2eb30252ad6c2f0eaf73eec7121.zip | |
mmc: rename mmc_can_erase() to mmc_card_can_erase()
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 3ba62f825b84..099fee86d088 100644 --- a/drivers/mmc/core/queue.c +++ b/drivers/mmc/core/queue.c @@ -352,7 +352,7 @@ static struct gendisk *mmc_alloc_disk(struct mmc_queue *mq, }; struct gendisk *disk; - if (mmc_can_erase(card)) + if (mmc_card_can_erase(card)) mmc_queue_setup_discard(card, &lim); lim.max_hw_sectors = min(host->max_blk_count, host->max_req_size / 512); |
