hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/include/linux/iio/buffer_impl.h
....@@ -18,7 +18,7 @@
1818 /**
1919 * struct iio_buffer_access_funcs - access functions for buffers.
2020 * @store_to: actually store stuff to the buffer
21
- * @read_first_n: try to get a specified number of bytes (must exist)
21
+ * @read: try to get a specified number of bytes (must exist)
2222 * @data_available: indicates how much data is available for reading from
2323 * the buffer.
2424 * @request_update: if a parameter change has been marked, update underlying
....@@ -45,9 +45,7 @@
4545 **/
4646 struct iio_buffer_access_funcs {
4747 int (*store_to)(struct iio_buffer *buffer, const void *data);
48
- int (*read_first_n)(struct iio_buffer *buffer,
49
- size_t n,
50
- char __user *buf);
48
+ int (*read)(struct iio_buffer *buffer, size_t n, char __user *buf);
5149 size_t (*data_available)(struct iio_buffer *buffer);
5250
5351 int (*request_update)(struct iio_buffer *buffer);
....@@ -96,12 +94,6 @@
9694 unsigned int watermark;
9795
9896 /* private: */
99
- /*
100
- * @scan_el_attrs: Control of scan elements if that scan mode
101
- * control method is used.
102
- */
103
- struct attribute_group *scan_el_attrs;
104
-
10597 /* @scan_timestamp: Does the scan mode include a timestamp. */
10698 bool scan_timestamp;
10799
....@@ -116,9 +108,6 @@
116108 * created from the iio_chan_info array.
117109 */
118110 struct attribute_group scan_el_group;
119
-
120
- /* @stufftoread: Flag to indicate new data. */
121
- bool stufftoread;
122111
123112 /* @attrs: Standard attributes of the buffer. */
124113 const struct attribute **attrs;