disk: use standard DT kconfig dependencies

Use `depends on DT_HAS_* default y` instead of `default y if DT_HAS_*`
as the driver depends on devicetree instance.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-07-11 21:09:17 +10:00 committed by Anas Nashif
parent c9b1daa7ae
commit 6bd77c848c
3 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,8 @@
config DISK_DRIVER_MMC
bool "MMC card driver"
default y if DT_HAS_ZEPHYR_MMC_DISK_ENABLED
depends on DT_HAS_ZEPHYR_MMC_DISK_ENABLED
default y
help
MMC card driver.

View file

@ -3,7 +3,8 @@
config DISK_DRIVER_RAM
bool "RAM Disk"
default y if DT_HAS_ZEPHYR_RAM_DISK_ENABLED
depends on DT_HAS_ZEPHYR_RAM_DISK_ENABLED
default y
help
RAM buffer used to emulate storage disk.
This option can be used to test the file

View file

@ -6,8 +6,9 @@ DT_STM32_SDMMC_HAS_DMA := $(dt_nodelabel_has_prop,sdmmc,dmas)
config DISK_DRIVER_SDMMC
bool "SDMMC card driver"
default y if DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED || \
depends on DT_HAS_ZEPHYR_SDMMC_DISK_ENABLED || \
DT_HAS_ST_STM32_SDMMC_ENABLED
default y
help
SDMMC card driver.