zephyr/drivers/sensor/apds9960/Kconfig
Maureen Helm 98d765a3b4 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>
2018-10-02 10:50:18 -07:00

36 lines
616 B
Plaintext

#
# Copyright (c) 2017 Intel Corporation
# Copyright (c) 2018 Phytec Messtechnik GmbH
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig APDS9960
bool "APDS9960 Sensor"
depends on I2C && HAS_DTS_I2C && HAS_DTS_GPIO
help
Enable driver for APDS9960 sensors.
if APDS9960
choice
prompt "Trigger mode"
default APDS9960_TRIGGER_NONE
help
Specify the type of triggering used by the driver.
config APDS9960_TRIGGER_NONE
bool "No trigger"
config APDS9960_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select APDS9960_TRIGGER
endchoice
config APDS9960_TRIGGER
bool
endif # APDS9960