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
bool "ADT7420 Temperature Sensor"
depends on I2C && HAS_DTS_I2C
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
help
Enable the driver for Analog Devices ADT7420 High-Accuracy
16-bit Digital I2C Temperature Sensors.
@ -55,26 +55,6 @@ endchoice
config ADT7420_TRIGGER
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
int "Thread priority"
depends on ADT7420_TRIGGER_OWN_THREAD && ADT7420_TRIGGER