From e438da8a36f188665b72265c014bde16252b8ca6 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 11 Aug 2022 22:58:20 -0500 Subject: [PATCH] adc: Move to using select in Kconfig for I2C & SPI busses Move to using 'select SPI'/'select I2C' instead of 'depends on' (see commit df81fef94483da9f2811d48088affbcfd61ab18c for more details) Signed-off-by: Kumar Gala --- drivers/adc/Kconfig.ads1119 | 2 +- drivers/adc/Kconfig.ads1x1x | 2 +- drivers/adc/Kconfig.lmp90xxx | 2 +- drivers/adc/Kconfig.mcp320x | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/adc/Kconfig.ads1119 b/drivers/adc/Kconfig.ads1119 index 31087b6cfa0..59ab0fd6eef 100644 --- a/drivers/adc/Kconfig.ads1119 +++ b/drivers/adc/Kconfig.ads1119 @@ -7,7 +7,7 @@ config ADC_ADS1119 bool "Texas instruments ADS1119 I2C" default y depends on DT_HAS_TI_ADS1119_ENABLED - depends on I2C + select I2C select ADC_CONFIGURABLE_INPUTS help Enable the driver implementation for the ADS1119 diff --git a/drivers/adc/Kconfig.ads1x1x b/drivers/adc/Kconfig.ads1x1x index 30f1fce19d9..c26ec35267a 100644 --- a/drivers/adc/Kconfig.ads1x1x +++ b/drivers/adc/Kconfig.ads1x1x @@ -11,7 +11,7 @@ config ADC_ADS1X1X DT_HAS_TI_ADS1114_ENABLED || DT_HAS_TI_ADS1115_ENABLED || \ DT_HAS_TI_ADS1119_ENABLED - depends on I2C + select I2C select ADC_CONFIGURABLE_INPUTS help Enable ADS1X1X ADC driver. diff --git a/drivers/adc/Kconfig.lmp90xxx b/drivers/adc/Kconfig.lmp90xxx index 29e2c7b168a..714c47da4f2 100644 --- a/drivers/adc/Kconfig.lmp90xxx +++ b/drivers/adc/Kconfig.lmp90xxx @@ -10,7 +10,7 @@ config ADC_LMP90XXX DT_HAS_TI_LMP90079_ENABLED || DT_HAS_TI_LMP90080_ENABLED || \ DT_HAS_TI_LMP90097_ENABLED || DT_HAS_TI_LMP90098_ENABLED || \ DT_HAS_TI_LMP90099_ENABLED || DT_HAS_TI_LMP90100_ENABLED - depends on SPI + select SPI select ADC_CONFIGURABLE_INPUTS help Enable LMP90xxx ADC driver. diff --git a/drivers/adc/Kconfig.mcp320x b/drivers/adc/Kconfig.mcp320x index 3734d84416d..4cfc486e8f5 100644 --- a/drivers/adc/Kconfig.mcp320x +++ b/drivers/adc/Kconfig.mcp320x @@ -7,7 +7,7 @@ config ADC_MCP320X bool "MCP3204/MCP3208 driver" default y depends on DT_HAS_MICROCHIP_MCP3204_ENABLED || DT_HAS_MICROCHIP_MCP3208_ENABLED - depends on SPI + select SPI help Enable MCP3204/MCP3208 ADC driver.