Skip to content

Commit 9e654f2

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: rename mmc_boot_partition_access() to mmc_host_can_access_boot()
It is not obvious that this functions checks capabilities. Rename it to include '_can' like other capability helpers and reword it slightly. Signed-off-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent f55f7da commit 9e654f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/mmc/core/host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static inline bool mmc_host_can_done_complete(struct mmc_host *host)
4949
return host->caps & MMC_CAP_DONE_COMPLETE;
5050
}
5151

52-
static inline int mmc_boot_partition_access(struct mmc_host *host)
52+
static inline int mmc_host_can_access_boot(struct mmc_host *host)
5353
{
5454
return !(host->caps2 & MMC_CAP2_BOOTPART_NOACC);
5555
}

drivers/mmc/core/mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
459459
* There are two boot regions of equal size, defined in
460460
* multiples of 128K.
461461
*/
462-
if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_boot_partition_access(card->host)) {
462+
if (ext_csd[EXT_CSD_BOOT_MULT] && mmc_host_can_access_boot(card->host)) {
463463
for (idx = 0; idx < MMC_NUM_BOOT_PARTITION; idx++) {
464464
part_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
465465
mmc_part_add(card, part_size,

0 commit comments

Comments
 (0)