sensors: lsm6dsv16x: Kconfig: Fix trigger mode
Select TRIGGER_GLOBAL_THREAD by default if rtio streaming is enabled, and TRIGGER_NONE otherwise. This change prevents bad trigger configurations like CONFIG_LSM6DSV16X_TRIGGER=y CONFIG_LSM6DSV16X_TRIGGER_NONE=y which does not have any sense. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
fb01afe49c
commit
1e28ffab40
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ config LSM6DSV16X_STREAM
|
|||
Use this config option to enable streaming sensor data via RTIO subsystem.
|
||||
|
||||
choice LSM6DSV16X_TRIGGER_MODE
|
||||
default LSM6DSV16X_TRIGGER_GLOBAL_THREAD if LSM6DSV16X_STREAM
|
||||
default LSM6DSV16X_TRIGGER_NONE
|
||||
prompt "Trigger mode"
|
||||
help
|
||||
Specify the type of triggering to be used by the driver.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue