Skip to content

Commit 1e28ffa

Browse files
aviscontikartben
authored andcommitted
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 <[email protected]>
1 parent fb01afe commit 1e28ffa

File tree

1 file changed

+2
-0
lines changed
  • drivers/sensor/st/lsm6dsv16x

1 file changed

+2
-0
lines changed

drivers/sensor/st/lsm6dsv16x/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ config LSM6DSV16X_STREAM
2929
Use this config option to enable streaming sensor data via RTIO subsystem.
3030

3131
choice LSM6DSV16X_TRIGGER_MODE
32+
default LSM6DSV16X_TRIGGER_GLOBAL_THREAD if LSM6DSV16X_STREAM
33+
default LSM6DSV16X_TRIGGER_NONE
3234
prompt "Trigger mode"
3335
help
3436
Specify the type of triggering to be used by the driver.

0 commit comments

Comments
 (0)