zephyr/drivers/sensor
Armando Visconti 667db2db88 drivers/sensor: lsm6dsl: Fix build when irq_gpios is not in DT
In case of h/w setup with multiples device instances it is possible
that some of them wants to use triggers but not the others (no
interrupt line.

Since Kconfig configuration is the same way for all the instances
(CONFIG_LSM6DSL_TRIGGER=y), the driver behaves differently according
to how the device instance has been configured in the DT.
If irq-gpios is present, then the driver initialize the interrupt
part, else it skip irq init and returns ok, but data->gpio != NULL
xis checked in trigger_set() API.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2020-11-02 10:00:07 -06:00
..
adt7420
adxl345
adxl362
adxl372
ak8975
amg88xx
ams_iAQcore
apds9960
bma280
bmc150_magn
bme280
bme680
bmg160
bmi160
bmm150
bq274xx
ccs811
dht
dps310
ens210
fxas21002
fxos8700
grove
hmc5883l
hp206c
hts221
iis2dh
iis2dlpc
iis2iclx
iis2mdc
iis3dhhc
isl29035
ism330dhcx
lis2dh
lis2ds12
lis2dw12
lis2mdl
lis3mdl
lps22hb
lps22hh
lps25hb
lsm6ds0
lsm6dsl
lsm6dso
lsm9ds0_gyro
lsm9ds0_mfd
lsm303dlhc_magn
max17055
max30101
max44009
mchp_tach_xec
mcp9808
mpr
mpu6050
ms5607
ms5837
nrf5
nxp_kinetis_temp
opt3001
pms7003
qdec_nrfx
sht3xd
si7006
si7055
si7060
sm351lt
stts751
sx9500
th02
ti_hdc
tmp007
tmp112
tmp116
vcnl4040
vl53l0x
wsen_itds
CMakeLists.txt
Kconfig
sensor_handlers.c
sensor_shell.c
shell_battery.c