summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/accel/adis16201_ring.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-01-03 10:02:51 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-09 18:03:51 (GMT)
commit7e632344adfe749749aa525f6fbe0ffc05ae3190 (patch)
tree1c1d11177e339afe58d166c588cc94c3a3275e89 /drivers/staging/iio/accel/adis16201_ring.c
parent54461c3067b2dce5947c9e4f88a8d905dca2c0c9 (diff)
downloadlinux-fsl-qoriq-7e632344adfe749749aa525f6fbe0ffc05ae3190.tar.xz
staging:iio: Setup buffer access functions when allocating the buffer
Setup the buffer access functions in the buffer allocate function. There is no need to let each driver handle this on its own. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/accel/adis16201_ring.c')
-rw-r--r--drivers/staging/iio/accel/adis16201_ring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/accel/adis16201_ring.c b/drivers/staging/iio/accel/adis16201_ring.c
index 26c610f..97f9e6b 100644
--- a/drivers/staging/iio/accel/adis16201_ring.c
+++ b/drivers/staging/iio/accel/adis16201_ring.c
@@ -115,9 +115,7 @@ int adis16201_configure_ring(struct iio_dev *indio_dev)
return ret;
}
indio_dev->buffer = ring;
- /* Effectively select the ring buffer implementation */
ring->scan_timestamp = true;
- ring->access = &ring_sw_access_funcs;
indio_dev->setup_ops = &adis16201_ring_setup_ops;
indio_dev->pollfunc = iio_alloc_pollfunc(&iio_pollfunc_store_time,