iio: st_sensors: split open-drain parameters for irq1 and irq2
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Sun, 17 Sep 2017 16:17:09 +0000 (18:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 10 Oct 2017 19:38:39 +0000 (20:38 +0100)
commita542f9a04d30570d367770e34f2c5d0c1d313337
tree06e67ae614f99ddcbb3f1c67de446bd37ab85142
parent6f667004612a11460551f464bf979005f520a6ee
iio: st_sensors: split open-drain parameters for irq1 and irq2

Define st_sensor_int_drdy structure in st_sensor_data_ready_irq in order
to contain irq line parameters of the device.
Moreover separate data-ready open-drain configuration parameters for INT1
and INT2 pins in st_sensor_data_ready_irq data structure.
That change will be used to properly support LIS3DHH accel sensor.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_core.c
drivers/iio/pressure/st_pressure_core.c
include/linux/iio/common/st_sensors.h