.. | .. |
---|
18 | 18 | /** |
---|
19 | 19 | * struct iio_buffer_access_funcs - access functions for buffers. |
---|
20 | 20 | * @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) |
---|
22 | 22 | * @data_available: indicates how much data is available for reading from |
---|
23 | 23 | * the buffer. |
---|
24 | 24 | * @request_update: if a parameter change has been marked, update underlying |
---|
.. | .. |
---|
45 | 45 | **/ |
---|
46 | 46 | struct iio_buffer_access_funcs { |
---|
47 | 47 | 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); |
---|
51 | 49 | size_t (*data_available)(struct iio_buffer *buffer); |
---|
52 | 50 | |
---|
53 | 51 | int (*request_update)(struct iio_buffer *buffer); |
---|
.. | .. |
---|
96 | 94 | unsigned int watermark; |
---|
97 | 95 | |
---|
98 | 96 | /* 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 | | - |
---|
105 | 97 | /* @scan_timestamp: Does the scan mode include a timestamp. */ |
---|
106 | 98 | bool scan_timestamp; |
---|
107 | 99 | |
---|
.. | .. |
---|
116 | 108 | * created from the iio_chan_info array. |
---|
117 | 109 | */ |
---|
118 | 110 | struct attribute_group scan_el_group; |
---|
119 | | - |
---|
120 | | - /* @stufftoread: Flag to indicate new data. */ |
---|
121 | | - bool stufftoread; |
---|
122 | 111 | |
---|
123 | 112 | /* @attrs: Standard attributes of the buffer. */ |
---|
124 | 113 | const struct attribute **attrs; |
---|