diff options
author | Josselin Costanzi <josselin.costanzi@mobile-devices.fr> | 2014-06-27 16:20:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-29 13:43:38 (GMT) |
commit | 9dd4694dafbd8b44ac4ca740beede18ca67d725f (patch) | |
tree | ef696cb9eb65ebd3ebd0942b2ede217eb843e360 /drivers/iio | |
parent | f1b07cdf6ba396d0ddcfd01caf358bdf897090d6 (diff) | |
download | linux-9dd4694dafbd8b44ac4ca740beede18ca67d725f.tar.xz |
iio: staging: sca3000: hide stufftoread logic
Change sca3000_ring implementation so that it exports a data_available
function to iio.
Signed-off-by: Josselin Costanzi <josselin.costanzi@mobile-devices.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/industrialio-buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/iio/industrialio-buffer.c b/drivers/iio/industrialio-buffer.c index 36b1ae9..2952ee0 100644 --- a/drivers/iio/industrialio-buffer.c +++ b/drivers/iio/industrialio-buffer.c @@ -39,10 +39,7 @@ static bool iio_buffer_is_active(struct iio_buffer *buf) static bool iio_buffer_data_available(struct iio_buffer *buf) { - if (buf->access->data_available) - return buf->access->data_available(buf); - - return buf->stufftoread; + return buf->access->data_available(buf); } /** |