driver/sensor: lis2dw12: update to use new GPIO API

Get rid of all the deprecated functions and definitions
replacing them with the new ones.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-12-06 11:05:02 +01:00 committed by Carles Cufí
commit e690fab6b1
5 changed files with 19 additions and 5 deletions

View file

@ -92,6 +92,7 @@ struct lis2dw12_device_config {
#ifdef CONFIG_LIS2DW12_TRIGGER
const char *int_gpio_port;
u8_t int_gpio_pin;
u8_t int_gpio_flags;
u8_t int_pin;
#ifdef CONFIG_LIS2DW12_PULSE
u8_t pulse_trigger;