sensor: bmi08x: Fix variable name in bmi08x_acc_trigger_mode_init

Fix undeclared variable error by changing 'config' to 'cfg' in the
data_sync condition check, matching the variable name declared at the
beginning of the function.

Signed-off-by: Liang Jiaxiang <moonbite233@gmail.com>
This commit is contained in:
Liang Jiaxiang 2025-05-06 22:29:30 +08:00 committed by Benjamin Cabé
commit b2c6d960cb

View file

@ -111,7 +111,7 @@ int bmi08x_acc_trigger_mode_init(const struct device *dev)
#endif
#if BMI08X_ACCEL_ANY_INST_HAS_DATA_SYNC
if (config->data_sync != 0) {
if (cfg->data_sync != 0) {
/* set accel ints */
ret = bmi08x_accel_byte_write(dev, BMI08X_REG_ACCEL_INT1_MAP, cfg->int1_map);
if (ret < 0) {