aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/st_accel.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/accel/st_accel.h')
-rw-r--r--drivers/iio/accel/st_accel.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/iio/accel/st_accel.h b/drivers/iio/accel/st_accel.h
index 37949b94377d..c3877630b2e4 100644
--- a/drivers/iio/accel/st_accel.h
+++ b/drivers/iio/accel/st_accel.h
@@ -25,7 +25,16 @@
25#define LSM303DLM_ACCEL_DEV_NAME "lsm303dlm_accel" 25#define LSM303DLM_ACCEL_DEV_NAME "lsm303dlm_accel"
26#define LSM330_ACCEL_DEV_NAME "lsm330_accel" 26#define LSM330_ACCEL_DEV_NAME "lsm330_accel"
27 27
28int st_accel_common_probe(struct iio_dev *indio_dev); 28/**
29* struct st_sensors_platform_data - default accel platform data
30* @drdy_int_pin: default accel DRDY is available on INT1 pin.
31*/
32static const struct st_sensors_platform_data default_accel_pdata = {
33 .drdy_int_pin = 1,
34};
35
36int st_accel_common_probe(struct iio_dev *indio_dev,
37 struct st_sensors_platform_data *pdata);
29void st_accel_common_remove(struct iio_dev *indio_dev); 38void st_accel_common_remove(struct iio_dev *indio_dev);
30 39
31#ifdef CONFIG_IIO_BUFFER 40#ifdef CONFIG_IIO_BUFFER