drivers: disk: sdmmc_subsys: remove CONFIG_SDMMC_VOLUME_NAME
Remove CONFIG_SDMMC_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 sdmmc_subsys disk driver to be registered. Add disk-name properties for all in tree definitions for the sdmmc-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
87bb0b9212
commit
a1dc0b8b3e
58 changed files with 77 additions and 40 deletions
|
@ -4,12 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&sdmmc1 {
|
||||
sdmmc {
|
||||
compatible = "zephyr,sdmmc-disk";
|
||||
};
|
||||
};
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifdef CONFIG_FS_LITTLEFS_BLK_DEV
|
||||
|
||||
#ifdef CONFIG_DISK_DRIVER_SDMMC
|
||||
#define DISK_NAME CONFIG_SDMMC_VOLUME_NAME
|
||||
#define DISK_NAME "SD"
|
||||
#elif defined(CONFIG_DISK_DRIVER_MMC)
|
||||
#define DISK_NAME CONFIG_MMC_VOLUME_NAME
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue