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:
Armando Visconti 2024-12-03 11:19:28 +01:00 committed by Benjamin Cabé
commit 1e28ffab40

View file

@ -29,6 +29,8 @@ config LSM6DSV16X_STREAM
Use this config option to enable streaming sensor data via RTIO subsystem. Use this config option to enable streaming sensor data via RTIO subsystem.
choice LSM6DSV16X_TRIGGER_MODE choice LSM6DSV16X_TRIGGER_MODE
default LSM6DSV16X_TRIGGER_GLOBAL_THREAD if LSM6DSV16X_STREAM
default LSM6DSV16X_TRIGGER_NONE
prompt "Trigger mode" prompt "Trigger mode"
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.