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:
parent
c9b1daa7ae
commit
6bd77c848c
3 changed files with 6 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue