zephyr/drivers/sensor/iis2dlpc
Armando Visconti f0332eb5d3 drivers/sensor: iis2dlpc: use common stmemsc routine
This commit aligns iis2dlpc sensor driver to latest multi
instance sensor driver model.

In particular:

    1. make use of some few DT helpers:
        - get bus devices with DEVICE_DT_GET
        - get SPI information with SPI_CONFIG_DT_INST
        - get drdy gpios with GPIO_DT_SPEC_GET

    2. make use of the stmemsc common routines and move ctx
       handler inside struct config, so that the bus_init
       routines can be totally avoided.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
2021-05-04 22:41:56 -04:00
..
CMakeLists.txt drivers/sensor: iis2dlpc: use common stmemsc routine 2021-05-04 22:41:56 -04:00
iis2dlpc_trigger.c drivers/sensor: iis2dlpc: use common stmemsc routine 2021-05-04 22:41:56 -04:00
iis2dlpc.c drivers/sensor: iis2dlpc: use common stmemsc routine 2021-05-04 22:41:56 -04:00
iis2dlpc.h drivers/sensor: iis2dlpc: use common stmemsc routine 2021-05-04 22:41:56 -04:00
Kconfig drivers/sensor: iis2dlpc: Move trigger pulse Kconfig property into DT 2021-01-18 09:21:00 -06:00