drivers: regulator: fix NXP VREF Kconfig leakage

Properly guard NXP VREF driver Kconfig options.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-04-19 22:51:08 -07:00 committed by Fabio Baltieri
parent b7bef3f8ff
commit a761c55144

View file

@ -3,12 +3,14 @@
config REGULATOR_NXP_VREF
bool "NXP VREF peripheral driver"
default y if DT_HAS_NXP_VREF_ENABLED
default y
depends on DT_HAS_NXP_VREF_ENABLED
help
Enable the NXP VREF driver
config REGULATOR_NXP_VREF_INIT_PRIORITY
int "NXP VREF peripheral driver init priority"
default 45
depends on DT_HAS_NXP_VREF_ENABLED
help
Init priority for the NXP VREF peripheral.