dts/Kconfig: Remove HAS_DTS_I2C

HAS_DTS_I2C is now selected by I2C and
always used as I2C && HAS_DTS_I2C.

It could then be purely removed.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-09-18 16:21:59 +02:00 committed by Maureen Helm
commit 8b47e563e2
45 changed files with 43 additions and 51 deletions

View file

@ -37,7 +37,7 @@ config EEPROM_AT2X
config EEPROM_AT24 config EEPROM_AT24
bool "Atmel AT24 (and compatible) I2C EEPROM support" bool "Atmel AT24 (and compatible) I2C EEPROM support"
depends on (I2C && HAS_DTS_I2C) depends on I2C
select EEPROM_AT2X select EEPROM_AT2X
help help
Enable support for Atmel AT24 (and compatible) I2C EEPROMs. Enable support for Atmel AT24 (and compatible) I2C EEPROMs.

View file

@ -8,7 +8,6 @@
# #
menuconfig I2C menuconfig I2C
bool "I2C Drivers" bool "I2C Drivers"
select HAS_DTS_I2C
help help
Enable I2C Driver Configuration Enable I2C Driver Configuration

View file

@ -4,7 +4,7 @@
menuconfig KSCAN_FT5336 menuconfig KSCAN_FT5336
bool "FT5XX6/FT6XX6 capacitive touch panel driver" bool "FT5XX6/FT6XX6 capacitive touch panel driver"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for multiple Focaltech capacitive touch panel Enable driver for multiple Focaltech capacitive touch panel
controllers. This driver should support FT5x06, FT5606, FT5x16, controllers. This driver should support FT5x06, FT5606, FT5x16,

View file

@ -3,7 +3,7 @@
menuconfig HT16K33 menuconfig HT16K33
bool "HT16K33 LED driver" bool "HT16K33 LED driver"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable LED driver for HT16K33. Enable LED driver for HT16K33.

View file

@ -5,7 +5,7 @@
menuconfig ADT7420 menuconfig ADT7420
bool "ADT7420 Temperature Sensor" bool "ADT7420 Temperature Sensor"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO depends on I2C && HAS_DTS_GPIO
help help
Enable the driver for Analog Devices ADT7420 High-Accuracy Enable the driver for Analog Devices ADT7420 High-Accuracy
16-bit Digital I2C Temperature Sensors. 16-bit Digital I2C Temperature Sensors.

View file

@ -5,7 +5,7 @@
menuconfig ADXL372 menuconfig ADXL372
bool "ADXL372 Three Axis High-g I2C/SPI accelerometer" bool "ADXL372 Three Axis High-g I2C/SPI accelerometer"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
help help
Enable driver for ADXL372 Three-Axis Digital Accelerometers. Enable driver for ADXL372 Three-Axis Digital Accelerometers.

View file

@ -5,7 +5,7 @@
menuconfig AMS_IAQ_CORE menuconfig AMS_IAQ_CORE
bool "iAQ-core Digital VOC sensor" bool "iAQ-core Digital VOC sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for iAQ-core Digital VOC sensor. Enable driver for iAQ-core Digital VOC sensor.

View file

@ -4,7 +4,7 @@
menuconfig APDS9960 menuconfig APDS9960
bool "APDS9960 Sensor" bool "APDS9960 Sensor"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO depends on I2C && HAS_DTS_GPIO
help help
Enable driver for APDS9960 sensors. Enable driver for APDS9960 sensors.

View file

@ -4,6 +4,6 @@
config BQ274XX config BQ274XX
bool "BQ274xx Fuel Gauge" bool "BQ274xx Fuel Gauge"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable I2C-based driver for BQ274xx Fuel Gauge. Enable I2C-based driver for BQ274xx Fuel Gauge.

View file

@ -7,7 +7,7 @@
menuconfig CCS811 menuconfig CCS811
bool "CCS811 Digital Gas Sensor" bool "CCS811 Digital Gas Sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for CCS811 Gas sensors. Enable driver for CCS811 Gas sensors.

View file

@ -5,7 +5,7 @@
menuconfig ENS210 menuconfig ENS210
bool "ENS210 Digital Temperature and Humidity sensor" bool "ENS210 Digital Temperature and Humidity sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for ENS210 Digital Temperature and Humidity sensor. Enable driver for ENS210 Digital Temperature and Humidity sensor.
if ENS210 if ENS210

View file

@ -5,7 +5,7 @@
menuconfig FXAS21002 menuconfig FXAS21002
bool "FXAS21002 gyroscope driver" bool "FXAS21002 gyroscope driver"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO depends on I2C && HAS_DTS_GPIO
help help
Enable driver for the FXAS21002 gyroscope Enable driver for the FXAS21002 gyroscope

View file

@ -5,7 +5,7 @@
menuconfig FXOS8700 menuconfig FXOS8700
bool "FXOS8700 accelerometer/magnetometer driver" bool "FXOS8700 accelerometer/magnetometer driver"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO depends on I2C && HAS_DTS_GPIO
help help
Enable driver for the FXOS8700 accelerometer/magnetometer. Enable driver for the FXOS8700 accelerometer/magnetometer.
The driver also supports MMA8451Q, MMA8652FC and MMA8653FC The driver also supports MMA8451Q, MMA8652FC and MMA8653FC

View file

@ -3,7 +3,7 @@
menuconfig HTS221 menuconfig HTS221
bool "HTS221 temperature and humidity sensor" bool "HTS221 temperature and humidity sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for HTS221 I2C-based temperature and humidity sensor. Enable driver for HTS221 I2C-based temperature and humidity sensor.

View file

@ -5,7 +5,7 @@
menuconfig IIS2DH menuconfig IIS2DH
bool "IIS2DH I2C/SPI accelerometer sensor driver" bool "IIS2DH I2C/SPI accelerometer sensor driver"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_IIS2DH select USE_STDC_IIS2DH
help help

View file

@ -5,7 +5,7 @@
menuconfig IIS2DLPC menuconfig IIS2DLPC
bool "IIS2DLPC I2C/SPI accelerometer sensor driver" bool "IIS2DLPC I2C/SPI accelerometer sensor driver"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_IIS2DLPC select USE_STDC_IIS2DLPC
help help

View file

@ -3,7 +3,7 @@
menuconfig IIS2MDC menuconfig IIS2MDC
bool "IIS2MDC Magnetometer" bool "IIS2MDC Magnetometer"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_IIS2MDC select USE_STDC_IIS2MDC
help help

View file

@ -5,7 +5,7 @@
menuconfig ISM330DHCX menuconfig ISM330DHCX
bool "ISM330DHCX I2C/SPI accelerometer and gyroscope Chip" bool "ISM330DHCX I2C/SPI accelerometer and gyroscope Chip"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_ISM330DHCX select USE_STDC_ISM330DHCX
help help

View file

@ -5,7 +5,7 @@
menuconfig LIS2DH menuconfig LIS2DH
bool "LIS2DH Three Axis Accelerometer" bool "LIS2DH Three Axis Accelerometer"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
help help
Enable SPI/I2C-based driver for LIS2DH, LIS3DH, LSM303DLHC, Enable SPI/I2C-based driver for LIS2DH, LIS3DH, LSM303DLHC,
LIS2DH12, LSM303AGR triaxial accelerometer sensors. LIS2DH12, LSM303AGR triaxial accelerometer sensors.

View file

@ -5,7 +5,7 @@
menuconfig LIS2DS12 menuconfig LIS2DS12
bool "LIS2DS12 I2C/SPI accelerometer sensor driver" bool "LIS2DS12 I2C/SPI accelerometer sensor driver"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
help help
Enable driver for LIS2DS12 accelerometer sensor driver Enable driver for LIS2DS12 accelerometer sensor driver

View file

@ -5,7 +5,7 @@
menuconfig LIS2DW12 menuconfig LIS2DW12
bool "LIS2DW12 I2C/SPI accelerometer sensor driver" bool "LIS2DW12 I2C/SPI accelerometer sensor driver"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_LIS2DW12 select USE_STDC_LIS2DW12
help help

View file

@ -3,7 +3,7 @@
menuconfig LIS2MDL menuconfig LIS2MDL
bool "LIS2MDL Magnetometer" bool "LIS2MDL Magnetometer"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_LIS2MDL select USE_STDC_LIS2MDL
help help

View file

@ -3,7 +3,7 @@
menuconfig LIS3MDL menuconfig LIS3MDL
bool "LIS3MDL magnetometer" bool "LIS3MDL magnetometer"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for LIS3MDL I2C-based magnetometer. Enable driver for LIS3MDL I2C-based magnetometer.

View file

@ -3,7 +3,7 @@
menuconfig LPS22HB menuconfig LPS22HB
bool "LPS22HB pressure and temperature" bool "LPS22HB pressure and temperature"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for LPS22HB I2C-based pressure and temperature Enable driver for LPS22HB I2C-based pressure and temperature
sensor. sensor.

View file

@ -5,7 +5,7 @@
menuconfig LPS22HH menuconfig LPS22HH
bool "LPS22HH pressure and temperature" bool "LPS22HH pressure and temperature"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_LPS22HH select USE_STDC_LPS22HH
help help

View file

@ -3,7 +3,7 @@
menuconfig LPS25HB menuconfig LPS25HB
bool "LPS25HB pressure and temperature" bool "LPS25HB pressure and temperature"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for LPS25HB I2C-based pressure and temperature Enable driver for LPS25HB I2C-based pressure and temperature
sensor. sensor.

View file

@ -6,7 +6,7 @@
menuconfig LSM6DS0 menuconfig LSM6DS0
bool "LSM6DS0 I2C accelerometer and gyroscope Chip" bool "LSM6DS0 I2C accelerometer and gyroscope Chip"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
sensor. sensor.

View file

@ -6,7 +6,7 @@
menuconfig LSM6DSL menuconfig LSM6DSL
bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip" bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
help help
Enable driver for LSM6DSL accelerometer and gyroscope Enable driver for LSM6DSL accelerometer and gyroscope
sensor. sensor.

View file

@ -5,7 +5,7 @@
menuconfig LSM6DSO menuconfig LSM6DSO
bool "LSM6DSO I2C/SPI accelerometer and gyroscope Chip" bool "LSM6DSO I2C/SPI accelerometer and gyroscope Chip"
depends on (I2C && HAS_DTS_I2C) || SPI depends on I2C || SPI
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_LSM6DSO select USE_STDC_LSM6DSO
help help

View file

@ -5,7 +5,7 @@
menuconfig LSM9DS0_GYRO menuconfig LSM9DS0_GYRO
bool "LSM9DS0 I2C gyroscope Chip" bool "LSM9DS0 I2C gyroscope Chip"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable driver for LSM9DS0 I2C-based gyroscope sensor. Enable driver for LSM9DS0 I2C-based gyroscope sensor.

View file

@ -5,7 +5,7 @@
menuconfig LSM9DS0_MFD menuconfig LSM9DS0_MFD
bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip" bool "LSM9DS0 I2C accelerometer, magnetometer and temperature sensor chip"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable driver for LSM9DS0 I2C-based MFD sensor. Enable driver for LSM9DS0 I2C-based MFD sensor.

View file

@ -4,7 +4,7 @@
config MAX17055 config MAX17055
bool "MAX17055 Fuel Gauge" bool "MAX17055 Fuel Gauge"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable I2C-based driver for MAX17055 Fuel Gauge. This driver supports Enable I2C-based driver for MAX17055 Fuel Gauge. This driver supports
reading various sensor settings including charge level percentage, reading various sensor settings including charge level percentage,

View file

@ -5,7 +5,7 @@
menuconfig MAX30101 menuconfig MAX30101
bool "MAX30101 Pulse Oximeter and Heart Rate Sensor" bool "MAX30101 Pulse Oximeter and Heart Rate Sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
if MAX30101 if MAX30101

View file

@ -5,7 +5,7 @@
menuconfig MPR menuconfig MPR
bool "MPR pressure sensor" bool "MPR pressure sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for MPR pressure sensor. Enable driver for MPR pressure sensor.

View file

@ -5,6 +5,6 @@
config MS5837 config MS5837
bool "MS5837 pressure and temperature sensor" bool "MS5837 pressure and temperature sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for MS5837 pressure and temperature sensor. Enable driver for MS5837 pressure and temperature sensor.

View file

@ -5,6 +5,6 @@
config OPT3001 config OPT3001
bool "OPT3001 Light Sensor" bool "OPT3001 Light Sensor"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable driver for OPT3001 light sensors. Enable driver for OPT3001 light sensors.

View file

@ -3,6 +3,6 @@
config SI7006 config SI7006
bool "Si7006 Temperature and Humidity Sensor" bool "Si7006 Temperature and Humidity Sensor"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable I2C-based driver for Si7006 Temperature and Humidity Sensor. Enable I2C-based driver for Si7006 Temperature and Humidity Sensor.

View file

@ -4,7 +4,7 @@
menuconfig SI7055 menuconfig SI7055
bool "Si7055 Temperature Sensor" bool "Si7055 Temperature Sensor"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable I2C-based driver for Si7055 Temperature Sensor. Enable I2C-based driver for Si7055 Temperature Sensor.

View file

@ -5,6 +5,6 @@
config SI7060 config SI7060
bool "SI7060 Temperature Sensor" bool "SI7060 Temperature Sensor"
depends on (I2C && HAS_DTS_I2C) depends on I2C
help help
Enable driver for SI7060 temperature sensors. Enable driver for SI7060 temperature sensors.

View file

@ -5,7 +5,7 @@
menuconfig STTS751 menuconfig STTS751
bool "STTS751 temperature sensor" bool "STTS751 temperature sensor"
depends on (I2C && HAS_DTS_I2C) depends on I2C
select HAS_STMEMSC select HAS_STMEMSC
select USE_STDC_STTS751 select USE_STDC_STTS751
help help

View file

@ -5,6 +5,6 @@
config TI_HDC config TI_HDC
bool "Texas Instruments Temperature and Humidity Sensor (e.g. HDC1008)" bool "Texas Instruments Temperature and Humidity Sensor (e.g. HDC1008)"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for TI temperature and humidity sensors. Enable driver for TI temperature and humidity sensors.

View file

@ -5,6 +5,6 @@
config TMP116 config TMP116
bool "TMP116 Temperature Sensor" bool "TMP116 Temperature Sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
help help
Enable driver for TMP116 temperature sensor. Enable driver for TMP116 temperature sensor.

View file

@ -5,7 +5,7 @@
menuconfig VCNL4040 menuconfig VCNL4040
bool "VCNL4040 Proximity and Ambient Light Sensor" bool "VCNL4040 Proximity and Ambient Light Sensor"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO depends on I2C && HAS_DTS_GPIO
help help
Enable driver for VCNL4040 sensors. Enable driver for VCNL4040 sensors.

View file

@ -5,7 +5,7 @@
menuconfig VL53L0X menuconfig VL53L0X
bool "VL53L0X time of flight sensor" bool "VL53L0X time of flight sensor"
depends on I2C && HAS_DTS_I2C depends on I2C
select HAS_STLIB select HAS_STLIB
help help
Enable driver for VL53L0X I2C-based time of flight sensor. Enable driver for VL53L0X I2C-based time of flight sensor.

View file

@ -13,13 +13,6 @@ config HAS_DTS_GPIO
This option specifies that the target platform supports device tree This option specifies that the target platform supports device tree
configuration for GPIO. configuration for GPIO.
config HAS_DTS_I2C
bool
depends on HAS_DTS
help
This option specifies that the target platform supports device tree
configuration for I2c.
config HAS_DTS_WDT config HAS_DTS_WDT
bool bool
depends on HAS_DTS depends on HAS_DTS