0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ST_GYRO_H
0012 #define ST_GYRO_H
0013
0014 #include <linux/types.h>
0015 #include <linux/iio/common/st_sensors.h>
0016
0017 #define L3G4200D_GYRO_DEV_NAME "l3g4200d"
0018 #define LSM330D_GYRO_DEV_NAME "lsm330d_gyro"
0019 #define LSM330DL_GYRO_DEV_NAME "lsm330dl_gyro"
0020 #define LSM330DLC_GYRO_DEV_NAME "lsm330dlc_gyro"
0021 #define L3GD20_GYRO_DEV_NAME "l3gd20"
0022 #define L3GD20H_GYRO_DEV_NAME "l3gd20h"
0023 #define L3G4IS_GYRO_DEV_NAME "l3g4is_ui"
0024 #define LSM330_GYRO_DEV_NAME "lsm330_gyro"
0025 #define LSM9DS0_GYRO_DEV_NAME "lsm9ds0_gyro"
0026
0027 #ifdef CONFIG_IIO_BUFFER
0028 int st_gyro_allocate_ring(struct iio_dev *indio_dev);
0029 int st_gyro_trig_set_state(struct iio_trigger *trig, bool state);
0030 #define ST_GYRO_TRIGGER_SET_STATE (&st_gyro_trig_set_state)
0031 #else
0032 static inline int st_gyro_allocate_ring(struct iio_dev *indio_dev)
0033 {
0034 return 0;
0035 }
0036 #define ST_GYRO_TRIGGER_SET_STATE NULL
0037 #endif
0038
0039 #endif