iio: staging: sca3000: hide stufftoread logic
authorJosselin Costanzi <josselin.costanzi@mobile-devices.fr>
Fri, 27 Jun 2014 16:20:00 +0000 (17:20 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 Jun 2014 13:43:38 +0000 (14:43 +0100)
commit9dd4694dafbd8b44ac4ca740beede18ca67d725f
treeef696cb9eb65ebd3ebd0942b2ede217eb843e360
parentf1b07cdf6ba396d0ddcfd01caf358bdf897090d6
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>
drivers/iio/industrialio-buffer.c
drivers/staging/iio/accel/sca3000_ring.c