diff options
Diffstat (limited to 'include/linux/iio/iio.h')
| -rw-r--r-- | include/linux/iio/iio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index 80d855061064..d86b753e9b30 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h | |||
| @@ -338,6 +338,16 @@ struct iio_dev; | |||
| 338 | * provide a custom of_xlate function that reads the | 338 | * provide a custom of_xlate function that reads the |
| 339 | * *args* and returns the appropriate index in registered | 339 | * *args* and returns the appropriate index in registered |
| 340 | * IIO channels array. | 340 | * IIO channels array. |
| 341 | * @hwfifo_set_watermark: function pointer to set the current hardware | ||
| 342 | * fifo watermark level; see hwfifo_* entries in | ||
| 343 | * Documentation/ABI/testing/sysfs-bus-iio for details on | ||
| 344 | * how the hardware fifo operates | ||
| 345 | * @hwfifo_flush_to_buffer: function pointer to flush the samples stored | ||
| 346 | * in the hardware fifo to the device buffer. The driver | ||
| 347 | * should not flush more than count samples. The function | ||
| 348 | * must return the number of samples flushed, 0 if no | ||
| 349 | * samples were flushed or a negative integer if no samples | ||
| 350 | * were flushed and there was an error. | ||
| 341 | **/ | 351 | **/ |
| 342 | struct iio_info { | 352 | struct iio_info { |
| 343 | struct module *driver_module; | 353 | struct module *driver_module; |
| @@ -399,6 +409,9 @@ struct iio_info { | |||
| 399 | unsigned *readval); | 409 | unsigned *readval); |
| 400 | int (*of_xlate)(struct iio_dev *indio_dev, | 410 | int (*of_xlate)(struct iio_dev *indio_dev, |
| 401 | const struct of_phandle_args *iiospec); | 411 | const struct of_phandle_args *iiospec); |
| 412 | int (*hwfifo_set_watermark)(struct iio_dev *indio_dev, unsigned val); | ||
| 413 | int (*hwfifo_flush_to_buffer)(struct iio_dev *indio_dev, | ||
| 414 | unsigned count); | ||
| 402 | }; | 415 | }; |
| 403 | 416 | ||
| 404 | /** | 417 | /** |
