drivers: sensor: Remove Kconfigs conditioned upon !HAS_DTS_GPIO

Make device tree required for these sensor drivers.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2018-09-19 17:25:44 -05:00 committed by Anas Nashif
commit 98d765a3b4
7 changed files with 5 additions and 124 deletions

View file

@ -7,7 +7,7 @@
menuconfig ADT7420 menuconfig ADT7420
bool "ADT7420 Temperature Sensor" bool "ADT7420 Temperature Sensor"
depends on I2C && HAS_DTS_I2C depends on I2C && HAS_DTS_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.
@ -55,26 +55,6 @@ endchoice
config ADT7420_TRIGGER config ADT7420_TRIGGER
bool bool
if !HAS_DTS_GPIO
config ADT7420_GPIO_DEV_NAME
string "GPIO device"
default "GPIO_0"
depends on ADT7420_TRIGGER
help
The GPIO device's name where the ADT7420 interrupt (alert) pin is
connected.
config ADT7420_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
default 0
depends on ADT7420_TRIGGER
help
The GPIO pin number receiving the interrupt signal from the
ADT7420 sensor.
endif # !HAS_DTS_GPIO
config ADT7420_THREAD_PRIORITY config ADT7420_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on ADT7420_TRIGGER_OWN_THREAD && ADT7420_TRIGGER depends on ADT7420_TRIGGER_OWN_THREAD && ADT7420_TRIGGER

View file

@ -206,26 +206,6 @@ endchoice
config ADXL372_TRIGGER config ADXL372_TRIGGER
bool bool
if !HAS_DTS_GPIO
config ADXL372_GPIO_DEV_NAME
string "GPIO device"
default "GPIO_0"
depends on ADXL372_TRIGGER
help
The GPIO device's name where the ADXL372 interrupt 1 or 2 pin is
connected.
config ADXL372_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
default 0
depends on ADXL372_TRIGGER
help
The GPIO pin number receiving the interrupt signal from the
ADXL372 sensor.
endif # !HAS_DTS_GPIO
config ADXL372_THREAD_PRIORITY config ADXL372_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on ADXL372_TRIGGER_OWN_THREAD && ADXL372_TRIGGER depends on ADXL372_TRIGGER_OWN_THREAD && ADXL372_TRIGGER

View file

@ -7,29 +7,12 @@
menuconfig APDS9960 menuconfig APDS9960
bool "APDS9960 Sensor" bool "APDS9960 Sensor"
depends on I2C && HAS_DTS_I2C depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
help help
Enable driver for APDS9960 sensors. Enable driver for APDS9960 sensors.
if APDS9960 if APDS9960
if !HAS_DTS_GPIO
config APDS9960_GPIO_DEV_NAME
string "GPIO device"
default "GPIO_0"
help
The GPIO device's name where the APDS9960 interrupt pin is connected.
config APDS9960_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
default 0
help
The GPIO pin number receiving the interrupt signal from the
APDS9960 sensor.
endif # !HAS_DTS_GPIO
choice choice
prompt "Trigger mode" prompt "Trigger mode"
default APDS9960_TRIGGER_NONE default APDS9960_TRIGGER_NONE

View file

@ -7,7 +7,7 @@
menuconfig FXAS21002 menuconfig FXAS21002
bool "FXAS21002 gyroscope driver" bool "FXAS21002 gyroscope driver"
depends on I2C && HAS_DTS_I2C depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
help help
Enable driver for the FXAS21002 gyroscope Enable driver for the FXAS21002 gyroscope
@ -70,16 +70,6 @@ config FXAS21002_TRIGGER
if FXAS21002_TRIGGER if FXAS21002_TRIGGER
if !HAS_DTS_GPIO
config FXAS21002_GPIO_NAME
string "GPIO device name"
config FXAS21002_GPIO_PIN
int "GPIO pin"
endif
config FXAS21002_DRDY_INT1 config FXAS21002_DRDY_INT1
bool "Data ready interrupt to INT1 pin" bool "Data ready interrupt to INT1 pin"
help help

View file

@ -7,7 +7,7 @@
menuconfig FXOS8700 menuconfig FXOS8700
bool "FXOS8700 accelerometer/magnetometer driver" bool "FXOS8700 accelerometer/magnetometer driver"
depends on I2C && HAS_DTS_I2C depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
help help
Enable driver for the FXOS8700 accelerometer/magnetometer Enable driver for the FXOS8700 accelerometer/magnetometer
@ -80,18 +80,6 @@ endchoice
config FXOS8700_TRIGGER config FXOS8700_TRIGGER
bool bool
if !HAS_DTS_GPIO
config FXOS8700_GPIO_NAME
string "GPIO device name"
depends on FXOS8700_TRIGGER
config FXOS8700_GPIO_PIN
int "GPIO pin"
depends on FXOS8700_TRIGGER
endif
config FXOS8700_DRDY_INT1 config FXOS8700_DRDY_INT1
bool "Data ready interrupt to INT1 pin" bool "Data ready interrupt to INT1 pin"
depends on FXOS8700_TRIGGER depends on FXOS8700_TRIGGER

View file

@ -8,28 +8,6 @@
menuconfig HDC1008 menuconfig HDC1008
bool "HDC1008 Temperature and Humidity Sensor" bool "HDC1008 Temperature and Humidity Sensor"
depends on I2C && HAS_DTS_I2C && GPIO depends on I2C && HAS_DTS_I2C && GPIO && HAS_DTS_GPIO
help help
Enable driver for HDC1008 temperature and humidity sensors. Enable driver for HDC1008 temperature and humidity sensors.
if HDC1008
if !HAS_DTS_GPIO
config HDC1008_GPIO_DEV_NAME
string "GPIO device"
default "GPIO_0"
help
The device name of the GPIO device to which the HDC1008 data-ready
pin is connected.
config HDC1008_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
default 0
help
The number of the GPIO on which the data-ready signal from the HDC1008
chip will be received.
endif # !HAS_DTS_GPIO
endif # HDC1008

View file

@ -54,24 +54,6 @@ endchoice
config LSM6DSL_TRIGGER config LSM6DSL_TRIGGER
bool bool
if !HAS_DTS_GPIO
config LSM6DSL_GPIO_DEV_NAME
string "GPIO device"
depends on LSM6DSL_TRIGGER
help
The device name of the GPIO device to which the LSM6DSL interrupt pin
is connected.
config LSM6DSL_GPIO_PIN_NUM
int "Interrupt GPIO pin number"
depends on LSM6DSL_TRIGGER
help
The number of the GPIO on which the interrupt signal from the LSM6DSL
chip will be received.
endif # HAS_DTS_GPIO
config LSM6DSL_THREAD_PRIORITY config LSM6DSL_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on LSM6DSL_TRIGGER_OWN_THREAD depends on LSM6DSL_TRIGGER_OWN_THREAD