drivers/sensor: lis2dw12: move int-pin in DTS binding

Take the int-pin information (i.e. what pin between INT1
and INT2 the drdy is attached to) directly from DT.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2021-05-27 13:23:09 +02:00 committed by Anas Nashif
commit 351b28e122
5 changed files with 20 additions and 20 deletions

View file

@ -381,11 +381,7 @@ const struct lis2dw12_device_config lis2dw12_cfg = {
.int_gpio_port = DT_INST_GPIO_LABEL(0, irq_gpios),
.int_gpio_pin = DT_INST_GPIO_PIN(0, irq_gpios),
.int_gpio_flags = DT_INST_GPIO_FLAGS(0, irq_gpios),
#if defined(CONFIG_LIS2DW12_INT_PIN_1)
.int_pin = 1,
#elif defined(CONFIG_LIS2DW12_INT_PIN_2)
.int_pin = 2,
#endif /* CONFIG_LIS2DW12_INT_PIN */
.int_pin = DT_INST_PROP(0, int_pin),
#ifdef CONFIG_LIS2DW12_PULSE
#if defined(CONFIG_LIS2DW12_ONLY_SINGLE)