From bb03af637cd378945b00c40560f82f02dc858e3c Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 8 Jun 2022 13:31:34 -0500 Subject: [PATCH] drivers: gpio: remove unused HAS_DTS_GPIO Kconfig symbol All the gpio drivers are based on devicetree and thus we always set HAS_DTS_GPIO, thus we don't need this Kconfig option anymore. Remove uses as its safe to assume DTS is supported for GPIO. Signed-off-by: Kumar Gala --- boards/arm/warp7_m4/Kconfig.board | 1 - drivers/gpio/Kconfig | 1 - drivers/gpio/Kconfig.andes_atcgpio100 | 1 - drivers/gpio/Kconfig.eos_s3 | 1 - drivers/gpio/Kconfig.it8xxx2 | 1 - drivers/gpio/Kconfig.mcp23s17 | 1 - drivers/gpio/Kconfig.mcux | 1 - drivers/sensor/adt7420/Kconfig | 2 +- drivers/sensor/apds9960/Kconfig | 2 +- drivers/sensor/fxas21002/Kconfig | 2 +- drivers/sensor/fxos8700/Kconfig | 2 +- drivers/sensor/vcnl4040/Kconfig | 2 +- dts/Kconfig | 7 ------- .../boards/arm/nrf52840dk_nrf52840/Kconfig.board | 1 - 14 files changed, 5 insertions(+), 20 deletions(-) diff --git a/boards/arm/warp7_m4/Kconfig.board b/boards/arm/warp7_m4/Kconfig.board index 8e39272f546..14ab7c1023f 100644 --- a/boards/arm/warp7_m4/Kconfig.board +++ b/boards/arm/warp7_m4/Kconfig.board @@ -7,4 +7,3 @@ config BOARD_WARP7_M4 bool "WaRP7 iMX7 Solo" depends on SOC_SERIES_IMX7_M4 select SOC_PART_NUMBER_MCIMX7S3DVK08SA - select HAS_DTS_GPIO diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index afc1f441cae..8efd52419c1 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -5,7 +5,6 @@ menuconfig GPIO bool "GPIO Drivers" - select HAS_DTS_GPIO help Include GPIO drivers in system config diff --git a/drivers/gpio/Kconfig.andes_atcgpio100 b/drivers/gpio/Kconfig.andes_atcgpio100 index 2a6705fca6a..6edc87aafe4 100644 --- a/drivers/gpio/Kconfig.andes_atcgpio100 +++ b/drivers/gpio/Kconfig.andes_atcgpio100 @@ -8,7 +8,6 @@ config GPIO_ANDES_ATCGPIO100 bool "Andes ATCGPIO100 GPIO driver" depends on SOC_SERIES_RISCV_ANDES_V5 - select HAS_DTS_GPIO help Enable driver for the Andes ATCGPIO100 GPIO controller. diff --git a/drivers/gpio/Kconfig.eos_s3 b/drivers/gpio/Kconfig.eos_s3 index 372543d3666..136ec33a45a 100644 --- a/drivers/gpio/Kconfig.eos_s3 +++ b/drivers/gpio/Kconfig.eos_s3 @@ -6,6 +6,5 @@ config GPIO_EOS_S3 bool "EOS_S3 GPIO driver" depends on EOS_S3_HAL - select HAS_DTS_GPIO help Enable the EOS S3 gpio driver. diff --git a/drivers/gpio/Kconfig.it8xxx2 b/drivers/gpio/Kconfig.it8xxx2 index 78812d7523c..51c2ceb16b1 100644 --- a/drivers/gpio/Kconfig.it8xxx2 +++ b/drivers/gpio/Kconfig.it8xxx2 @@ -3,6 +3,5 @@ config GPIO_ITE_IT8XXX2 bool "ITE IT8XXX2 GPIO driver" - select HAS_DTS_GPIO help Enable driver for the ite GPIO controller. diff --git a/drivers/gpio/Kconfig.mcp23s17 b/drivers/gpio/Kconfig.mcp23s17 index 81523ff81e4..ca57da224e7 100644 --- a/drivers/gpio/Kconfig.mcp23s17 +++ b/drivers/gpio/Kconfig.mcp23s17 @@ -6,7 +6,6 @@ menuconfig GPIO_MCP23S17 bool "MCP23S17 SPI-based GPIO chip" depends on SPI - select HAS_DTS_GPIO help Enable driver for MCP23S17 SPI-based GPIO chip. diff --git a/drivers/gpio/Kconfig.mcux b/drivers/gpio/Kconfig.mcux index a7de85f9f41..01e3a086ac5 100644 --- a/drivers/gpio/Kconfig.mcux +++ b/drivers/gpio/Kconfig.mcux @@ -6,6 +6,5 @@ config GPIO_MCUX bool "MCUX GPIO driver" - select HAS_DTS_GPIO help Enable the MCUX pinmux driver. diff --git a/drivers/sensor/adt7420/Kconfig b/drivers/sensor/adt7420/Kconfig index aa917a3f23d..ab8003dad13 100644 --- a/drivers/sensor/adt7420/Kconfig +++ b/drivers/sensor/adt7420/Kconfig @@ -5,7 +5,7 @@ menuconfig ADT7420 bool "ADT7420 Temperature Sensor" - depends on I2C && HAS_DTS_GPIO + depends on I2C help Enable the driver for Analog Devices ADT7420 High-Accuracy 16-bit Digital I2C Temperature Sensors. diff --git a/drivers/sensor/apds9960/Kconfig b/drivers/sensor/apds9960/Kconfig index 203745fbce9..786a0a8fb49 100644 --- a/drivers/sensor/apds9960/Kconfig +++ b/drivers/sensor/apds9960/Kconfig @@ -4,7 +4,7 @@ menuconfig APDS9960 bool "APDS9960 Sensor" - depends on I2C && HAS_DTS_GPIO + depends on I2C help Enable driver for APDS9960 sensors. diff --git a/drivers/sensor/fxas21002/Kconfig b/drivers/sensor/fxas21002/Kconfig index 056f90d4463..d16ed3ed8a7 100644 --- a/drivers/sensor/fxas21002/Kconfig +++ b/drivers/sensor/fxas21002/Kconfig @@ -5,7 +5,7 @@ menuconfig FXAS21002 bool "FXAS21002 gyroscope driver" - depends on I2C && HAS_DTS_GPIO + depends on I2C help Enable driver for the FXAS21002 gyroscope diff --git a/drivers/sensor/fxos8700/Kconfig b/drivers/sensor/fxos8700/Kconfig index a4fdd043787..42e51679d28 100644 --- a/drivers/sensor/fxos8700/Kconfig +++ b/drivers/sensor/fxos8700/Kconfig @@ -5,7 +5,7 @@ menuconfig FXOS8700 bool "FXOS8700 accelerometer/magnetometer driver" - depends on I2C && HAS_DTS_GPIO + depends on I2C help Enable driver for the FXOS8700 accelerometer/magnetometer. The driver also supports MMA8451Q, MMA8652FC and MMA8653FC diff --git a/drivers/sensor/vcnl4040/Kconfig b/drivers/sensor/vcnl4040/Kconfig index c5924cb88ac..7c3f09644e8 100644 --- a/drivers/sensor/vcnl4040/Kconfig +++ b/drivers/sensor/vcnl4040/Kconfig @@ -5,7 +5,7 @@ menuconfig VCNL4040 bool "VCNL4040 Proximity and Ambient Light Sensor" - depends on I2C && HAS_DTS_GPIO + depends on I2C help Enable driver for VCNL4040 sensors. diff --git a/dts/Kconfig b/dts/Kconfig index bbca31471bb..5d2c9d90571 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -5,10 +5,3 @@ config HAS_DTS help This option specifies that the target platform supports device tree configuration. - -config HAS_DTS_GPIO - bool - depends on HAS_DTS - help - This option specifies that the target platform supports device tree - configuration for GPIO. diff --git a/samples/application_development/out_of_tree_board/boards/arm/nrf52840dk_nrf52840/Kconfig.board b/samples/application_development/out_of_tree_board/boards/arm/nrf52840dk_nrf52840/Kconfig.board index 58591bda505..dcfdb550a43 100644 --- a/samples/application_development/out_of_tree_board/boards/arm/nrf52840dk_nrf52840/Kconfig.board +++ b/samples/application_development/out_of_tree_board/boards/arm/nrf52840dk_nrf52840/Kconfig.board @@ -5,5 +5,4 @@ config BOARD_NRF52840DK_NRF52840 bool "nRF52840 DK NRF52840" - select HAS_DTS_GPIO depends on SOC_NRF52840_QIAA