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:
parent
bd6facbc14
commit
98d765a3b4
7 changed files with 5 additions and 124 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue