summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/accel
diff options
context:
space:
mode:
authorKarol Wrona2014-12-19 18:39:24 +0100
committerJonathan Cameron2014-12-26 12:20:38 +0100
commit7ab374a053a43050117eb452306b6cd9dcb58cfd (patch)
tree1605369c59a8e0d07a788f17c93ae02cbcd46e2c /drivers/staging/iio/accel
parentiio: ABI: add clarification for proximity (diff)
downloadkernel-qcow2-linux-7ab374a053a43050117eb452306b6cd9dcb58cfd.tar.gz
kernel-qcow2-linux-7ab374a053a43050117eb452306b6cd9dcb58cfd.tar.xz
kernel-qcow2-linux-7ab374a053a43050117eb452306b6cd9dcb58cfd.zip
iio: kfifo: Remove unused argument in iio_kfifo_allocate
indio_dev was unused in function body plus some small style fix - add new lines after "if(sth) return sth" and before the last return statement. The argument was removed also in its client. Signed-off-by: Karol Wrona <k.wrona@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/accel')
-rw-r--r--drivers/staging/iio/accel/lis3l02dq_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c
index 9efc77b0ebdd..1fd90090a633 100644
--- a/drivers/staging/iio/accel/lis3l02dq_ring.c
+++ b/drivers/staging/iio/accel/lis3l02dq_ring.c
@@ -393,7 +393,7 @@ int lis3l02dq_configure_buffer(struct iio_dev *indio_dev)
int ret;
struct iio_buffer *buffer;
- buffer = iio_kfifo_allocate(indio_dev);
+ buffer = iio_kfifo_allocate();
if (!buffer)
return -ENOMEM;