summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/adc/max1363_ring.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-01-03 14:02:51 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-09 22:03:51 +0400
commit7e632344adfe749749aa525f6fbe0ffc05ae3190 (patch)
tree1c1d11177e339afe58d166c588cc94c3a3275e89 /drivers/staging/iio/adc/max1363_ring.c
parent54461c3067b2dce5947c9e4f88a8d905dca2c0c9 (diff)
downloadlinux-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/adc/max1363_ring.c')
-rw-r--r--drivers/staging/iio/adc/max1363_ring.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/adc/max1363_ring.c b/drivers/staging/iio/adc/max1363_ring.c
index f730b3fb971a..d0a60a382930 100644
--- a/drivers/staging/iio/adc/max1363_ring.c
+++ b/drivers/staging/iio/adc/max1363_ring.c
@@ -116,8 +116,6 @@ int max1363_register_ring_funcs_and_init(struct iio_dev *indio_dev)
ret = -ENOMEM;
goto error_deallocate_sw_rb;
}
- /* Effectively select the ring buffer implementation */
- indio_dev->buffer->access = &ring_sw_access_funcs;
/* Ring buffer functions - here trigger setup related */
indio_dev->setup_ops = &max1363_ring_setup_ops;