aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2024-03-14 10:36:27 +0100
committerKever Yang <kever.yang@rock-chips.com>2024-03-14 18:20:04 +0800
commit1606bcb0b806e1da98372b2a2b0536e1bb5b4a16 (patch)
treed1f8784bfa45cf572ffcc1cb36c7f874e843c486
parent768636c371482268cb9580f2056ec8a4f8099f96 (diff)
downloadu-boot-1606bcb0b806e1da98372b2a2b0536e1bb5b4a16.zip
u-boot-1606bcb0b806e1da98372b2a2b0536e1bb5b4a16.tar.gz
u-boot-1606bcb0b806e1da98372b2a2b0536e1bb5b4a16.tar.bz2
adc: add missing depends on ADC for controller drivers
The ADC controller drivers are obviously all depending on ADC symbol being selected. While they don't seem to fail to build without, they won't be useful without that symbol selected, so let's make sure the options aren't shown in menuconfig when ADC isn't selected. Cc: Quentin Schulz <foss+uboot@0leil.net> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r--drivers/adc/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig
index a01d738..c9cdbe6 100644
--- a/drivers/adc/Kconfig
+++ b/drivers/adc/Kconfig
@@ -13,6 +13,7 @@ config ADC
config ADC_EXYNOS
bool "Enable Exynos 54xx ADC driver"
+ depends on ADC
help
This enables basic driver for Exynos ADC compatible with Exynos54xx.
It provides:
@@ -22,6 +23,7 @@ config ADC_EXYNOS
config ADC_SANDBOX
bool "Enable Sandbox ADC test driver"
+ depends on ADC
help
This enables driver for Sandbox ADC device emulation.
It provides:
@@ -31,6 +33,7 @@ config ADC_SANDBOX
config SARADC_MESON
bool "Enable Amlogic Meson SARADC driver"
+ depends on ADC
imply REGMAP
help
This enables driver for Amlogic Meson SARADC.
@@ -41,6 +44,7 @@ config SARADC_MESON
config SARADC_ROCKCHIP
bool "Enable Rockchip SARADC driver"
+ depends on ADC
help
This enables driver for Rockchip SARADC.
It provides: