From: Quentin Schulz Date: Thu, 14 Mar 2024 09:36:28 +0000 (+0100) Subject: button: add missing ADC dependency for BUTTON_ADC X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=759ae818ba760e97a895bdaa1cd7a86f8972ea93;p=u-boot.git 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 Reviewed-by: Kever Yang Signed-off-by: Quentin Schulz --- diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig index 097b05f822..3918b05ae0 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