summaryrefslogtreecommitdiff
path: root/drivers/button
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2024-03-14 10:36:28 +0100
committerKever Yang <[email protected]>2024-03-14 18:20:04 +0800
commit759ae818ba760e97a895bdaa1cd7a86f8972ea93 (patch)
tree1240d1927a0af5475069eb59c0dccfce9052d041 /drivers/button
parent1606bcb0b806e1da98372b2a2b0536e1bb5b4a16 (diff)
button: add missing ADC dependency for BUTTON_ADC
The BUTTON_ADC symbol guards the compilation of button-adc driver whose name very well makes it explicit that it requires ADC support to be enabled. Fix build issue of button-adc driver when ADC support isn't enabled by making sure it cannot be built without ADC support. Cc: Quentin Schulz <[email protected]> Reviewed-by: Kever Yang <[email protected]> Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'drivers/button')
-rw-r--r--drivers/button/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig
index 097b05f822e..3918b05ae03 100644
--- a/drivers/button/Kconfig
+++ b/drivers/button/Kconfig
@@ -12,6 +12,7 @@ config BUTTON
config BUTTON_ADC
bool "Button adc"
depends on BUTTON
+ depends on ADC
help
Enable support for buttons which are connected to Analog to Digital
Converter device. The ADC driver must use driver model. Buttons are