|
@@ -227,14 +227,17 @@ struct st_sensor_data {
|
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_IIO_BUFFER
|
|
|
+irqreturn_t st_sensors_trigger_handler(int irq, void *p);
|
|
|
+
|
|
|
+int st_sensors_get_buffer_element(struct iio_dev *indio_dev, u8 *buf);
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifdef CONFIG_IIO_TRIGGER
|
|
|
int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
|
|
|
const struct iio_trigger_ops *trigger_ops);
|
|
|
|
|
|
void st_sensors_deallocate_trigger(struct iio_dev *indio_dev);
|
|
|
|
|
|
-irqreturn_t st_sensors_trigger_handler(int irq, void *p);
|
|
|
-
|
|
|
-int st_sensors_get_buffer_element(struct iio_dev *indio_dev, u8 *buf);
|
|
|
#else
|
|
|
static inline int st_sensors_allocate_trigger(struct iio_dev *indio_dev,
|
|
|
const struct iio_trigger_ops *trigger_ops)
|