iio: Added ST-sensors platform data to select the DRDY interrupt pin
This patch add support to redirect the DRDY interrupt on INT1 or INT2 on accelerometer and pressure sensors. Signed-off-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:

committed by
Jonathan Cameron

parent
36e607a16b
commit
23cde4d65c
@@ -36,7 +36,7 @@ static int st_press_i2c_probe(struct i2c_client *client,
|
||||
|
||||
st_sensors_i2c_configure(indio_dev, client, pdata);
|
||||
|
||||
err = st_press_common_probe(indio_dev);
|
||||
err = st_press_common_probe(indio_dev, client->dev.platform_data);
|
||||
if (err < 0)
|
||||
goto st_press_common_probe_error;
|
||||
|
||||
|
Reference in New Issue
Block a user