diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-06-20 11:25:44 -0400 |
commit | af52739b922f656eb1f39016fabaabe4baeda2e2 (patch) | |
tree | 79a7aa810d0493cd0cf4adebac26d37f12e8b545 /include/linux/iio/common/st_sensors.h | |
parent | 25ed6a5e97809129a1bc852b6b5c7d03baa112c4 (diff) | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) |
Merge 4.7-rc4 into staging-next
We want the fixes in here, and we can resolve a merge issue in
drivers/iio/industrialio-trigger.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/iio/common/st_sensors.h')
-rw-r--r-- | include/linux/iio/common/st_sensors.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index 91d5f684a53a..28052cddaa03 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
@@ -223,6 +223,8 @@ struct st_sensor_settings { | |||
223 | * @get_irq_data_ready: Function to get the IRQ used for data ready signal. | 223 | * @get_irq_data_ready: Function to get the IRQ used for data ready signal. |
224 | * @tf: Transfer function structure used by I/O operations. | 224 | * @tf: Transfer function structure used by I/O operations. |
225 | * @tb: Transfer buffers and mutex used by I/O operations. | 225 | * @tb: Transfer buffers and mutex used by I/O operations. |
226 | * @hw_irq_trigger: if we're using the hardware interrupt on the sensor. | ||
227 | * @hw_timestamp: Latest timestamp from the interrupt handler, when in use. | ||
226 | */ | 228 | */ |
227 | struct st_sensor_data { | 229 | struct st_sensor_data { |
228 | struct device *dev; | 230 | struct device *dev; |
@@ -247,6 +249,9 @@ struct st_sensor_data { | |||
247 | 249 | ||
248 | const struct st_sensor_transfer_function *tf; | 250 | const struct st_sensor_transfer_function *tf; |
249 | struct st_sensor_transfer_buffer tb; | 251 | struct st_sensor_transfer_buffer tb; |
252 | |||
253 | bool hw_irq_trigger; | ||
254 | s64 hw_timestamp; | ||
250 | }; | 255 | }; |
251 | 256 | ||
252 | #ifdef CONFIG_IIO_BUFFER | 257 | #ifdef CONFIG_IIO_BUFFER |
@@ -258,7 +263,8 @@ int st_sensors_allocate_trigger(struct iio_dev *indio_dev, | |||
258 | const struct iio_trigger_ops *trigger_ops); | 263 | const struct iio_trigger_ops *trigger_ops); |
259 | 264 | ||
260 | void st_sensors_deallocate_trigger(struct iio_dev *indio_dev); | 265 | void st_sensors_deallocate_trigger(struct iio_dev *indio_dev); |
261 | 266 | int st_sensors_validate_device(struct iio_trigger *trig, | |
267 | struct iio_dev *indio_dev); | ||
262 | #else | 268 | #else |
263 | static inline int st_sensors_allocate_trigger(struct iio_dev *indio_dev, | 269 | static inline int st_sensors_allocate_trigger(struct iio_dev *indio_dev, |
264 | const struct iio_trigger_ops *trigger_ops) | 270 | const struct iio_trigger_ops *trigger_ops) |
@@ -269,6 +275,7 @@ static inline void st_sensors_deallocate_trigger(struct iio_dev *indio_dev) | |||
269 | { | 275 | { |
270 | return; | 276 | return; |
271 | } | 277 | } |
278 | #define st_sensors_validate_device NULL | ||
272 | #endif | 279 | #endif |
273 | 280 | ||
274 | int st_sensors_init_sensor(struct iio_dev *indio_dev, | 281 | int st_sensors_init_sensor(struct iio_dev *indio_dev, |