diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2013-06-19 04:28:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-08-03 13:40:28 -0400 |
commit | 23cde4d65cc7d11e2048d2b240cdf13927ac50d0 (patch) | |
tree | 3fd2d23f8c092056244e14703bce9842c203ba13 /drivers/iio/pressure/st_pressure.h | |
parent | 36e607a16b8def1b184d48a4489b716d6dbe3379 (diff) |
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>
Diffstat (limited to 'drivers/iio/pressure/st_pressure.h')
-rw-r--r-- | drivers/iio/pressure/st_pressure.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/iio/pressure/st_pressure.h b/drivers/iio/pressure/st_pressure.h index 414e45ac9b9b..b0b630688da6 100644 --- a/drivers/iio/pressure/st_pressure.h +++ b/drivers/iio/pressure/st_pressure.h | |||
@@ -16,7 +16,16 @@ | |||
16 | 16 | ||
17 | #define LPS331AP_PRESS_DEV_NAME "lps331ap" | 17 | #define LPS331AP_PRESS_DEV_NAME "lps331ap" |
18 | 18 | ||
19 | int st_press_common_probe(struct iio_dev *indio_dev); | 19 | /** |
20 | * struct st_sensors_platform_data - default press platform data | ||
21 | * @drdy_int_pin: default press DRDY is available on INT1 pin. | ||
22 | */ | ||
23 | static const struct st_sensors_platform_data default_press_pdata = { | ||
24 | .drdy_int_pin = 1, | ||
25 | }; | ||
26 | |||
27 | int st_press_common_probe(struct iio_dev *indio_dev, | ||
28 | struct st_sensors_platform_data *pdata); | ||
20 | void st_press_common_remove(struct iio_dev *indio_dev); | 29 | void st_press_common_remove(struct iio_dev *indio_dev); |
21 | 30 | ||
22 | #ifdef CONFIG_IIO_BUFFER | 31 | #ifdef CONFIG_IIO_BUFFER |