zephyr/drivers/sensor/lsm6dso
Armando Visconti 1325525e3b drivers/sensor: lsm6dso: Fix shub for multi-instance case
In case of multi-instance the driver tries to discover whether
there are devices attached to SDx/SCx sensorhub bus. If not it
just turns the shub_inited variable (inside data structure) to false
and skips doing any further sensorhub related action for that
particular LSM6DSO device instance, regardless the fact that the macro
CONFIG_LSM6DSO_SENSORHUB is enabled.

Moreover, the info found during the enumeration process for a
particular instance (number and types of attached devices) must be
saved inside the per-instance data structure, so that more than one
LSM6DSO device can be used as a sensorhub without interfering with
the others.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-05-18 11:18:08 -05:00
..
CMakeLists.txt drivers/sensor: lsm6dso: move ctx structure inside struct config 2021-05-07 20:53:47 -04:00
Kconfig drivers/sensor: lsm6dso: move int-pin in DTS binding 2021-04-06 15:34:01 +02:00
lsm6dso_shub.c drivers/sensor: lsm6dso: Fix shub for multi-instance case 2021-05-18 11:18:08 -05:00
lsm6dso_trigger.c drivers/sensor: lsm6dso: (FIX) enable interrupt selectively 2021-05-07 20:53:47 -04:00
lsm6dso.c drivers/sensor: lsm6dso: Fix shub for multi-instance case 2021-05-18 11:18:08 -05:00
lsm6dso.h drivers/sensor: lsm6dso: Fix shub for multi-instance case 2021-05-18 11:18:08 -05:00