drivers: disk: mmc_subsys: remove CONFIG_MMC_VOLUME_NAME
Remove CONFIG_MMC_VOLUME_NAME, and set the disk name based on the ``disk-name`` property. This aligns with other disk drivers, and allows for multiple instances of the mmc_subsys disk driver to be registered. Add disk-name properties for all in tree definitions for the mmc-subsys disk driver, and change all in tree usage of the disk name Fixes #75004 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
a1dc0b8b3e
commit
07a8e3253a
19 changed files with 37 additions and 29 deletions
|
@ -4,5 +4,4 @@ CONFIG_FAT_FILESYSTEM_ELM=y
|
|||
CONFIG_SPI=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_MMC_VOLUME_NAME="NAND"
|
||||
CONFIG_MAIN_STACK_SIZE=4096
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#elif defined(CONFIG_DISK_DRIVER_SDMMC)
|
||||
#define DISK_NAME "SD"
|
||||
#elif defined(CONFIG_DISK_DRIVER_MMC)
|
||||
#define DISK_NAME CONFIG_MMC_VOLUME_NAME
|
||||
#define DISK_NAME "SD2"
|
||||
#else
|
||||
#error "Failed to select DISK access type"
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue