|
@@ -141,6 +141,11 @@ static int sca3000_ring_get_bytes_per_datum(struct iio_buffer *r)
|
|
|
return 6;
|
|
|
}
|
|
|
|
|
|
+static bool sca3000_ring_buf_data_available(struct iio_buffer *r)
|
|
|
+{
|
|
|
+ return r->stufftoread;
|
|
|
+}
|
|
|
+
|
|
|
static IIO_BUFFER_ENABLE_ATTR;
|
|
|
static IIO_BUFFER_LENGTH_ATTR;
|
|
|
|
|
@@ -274,6 +279,7 @@ static const struct iio_buffer_access_funcs sca3000_ring_access_funcs = {
|
|
|
.read_first_n = &sca3000_read_first_n_hw_rb,
|
|
|
.get_length = &sca3000_ring_get_length,
|
|
|
.get_bytes_per_datum = &sca3000_ring_get_bytes_per_datum,
|
|
|
+ .data_available = sca3000_ring_buf_data_available,
|
|
|
.release = sca3000_ring_release,
|
|
|
};
|
|
|
|